Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
dd82e80c
Commit
dd82e80c
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Copied ultoa from wrappers.c for Unix build.
parent
707a0a9c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/scfg.c
+25
-0
25 additions, 0 deletions
src/sbbs3/scfg/scfg.c
with
25 additions
and
0 deletions
src/sbbs3/scfg/scfg.c
+
25
−
0
View file @
dd82e80c
...
...
@@ -1878,4 +1878,29 @@ void errormsg(int line, char *source, char action, char *object, ulong access)
#endif
}
/****************************************************************************/
/* Return ASCII string representation of ulong */
/* There may be a native GNU C Library function to this... */
/****************************************************************************/
#if !defined _MSC_VER && !defined __BORLANDC__
char
*
DLLCALL
ultoa
(
ulong
val
,
char
*
str
,
int
radix
)
{
switch
(
radix
)
{
case
8
:
sprintf
(
str
,
"%lo"
,
val
);
break
;
case
10
:
sprintf
(
str
,
"%lu"
,
val
);
break
;
case
16
:
sprintf
(
str
,
"%lx"
,
val
);
break
;
default:
sprintf
(
str
,
"bad radix: %d"
,
radix
);
break
;
}
return
(
str
);
}
#endif
/* End of SCFG.C */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment