Skip to content
Snippets Groups Projects
Commit dd82e80c authored by rswindell's avatar rswindell
Browse files

Copied ultoa from wrappers.c for Unix build.

parent 707a0a9c
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment