Skip to content
Snippets Groups Projects
Commit 1bea8247 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Create *nix wrapper for MSVC's _i64toa()

parent d855e164
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -601,6 +601,25 @@ char* ultoa(ulong val, char* str, int radix)
}
return(str);
}
char* _i64toa(int64_t val, char* str, int radix)
{
switch(radix) {
case 8:
sprintf(str,"%"PRIo64,val);
break;
case 10:
sprintf(str,"%"PRId64,val);
break;
case 16:
sprintf(str,"%"PRIx64,val);
break;
default:
sprintf(str,"bad radix: %d",radix);
break;
}
return str;
}
#endif
/****************************************************************************/
......
......@@ -228,6 +228,7 @@ extern "C" {
#if !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__)
DLLEXPORT char* ultoa(ulong, char*, int radix);
DLLEXPORT char* _i64toa(int64_t, char*, int radix);
#endif
#if defined(__unix__)
......
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