All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
xtoa.cpp File Reference
#include <stdlib.h>
#include <limits.h>
#include "GaudiKernel/xtoa.h"
Include dependency graph for xtoa.cpp:

Go to the source code of this file.

Functions

char *__cdecl _itoa (int val, char *buf, int radix)
 
char *__cdecl _ltoa (long val, char *buf, int radix)
 
char *__cdecl _ultoa (unsigned long val, char *buf, int radix)
 

Function Documentation

char* __cdecl _itoa ( int  val,
char *  buf,
int  radix 
)

Definition at line 83 of file xtoa.cpp.

{
if (radix == 10 && val < 0)
xtoa((unsigned long)val, buf, radix, 1);
else
xtoa((unsigned long)(unsigned int)val, buf, radix, 0);
return buf;
}
char* __cdecl _ltoa ( long  val,
char *  buf,
int  radix 
)

Definition at line 91 of file xtoa.cpp.

{
xtoa((unsigned long)val, buf, radix, (radix == 10 && val < 0));
return buf;
}
char* __cdecl _ultoa ( unsigned long  val,
char *  buf,
int  radix 
)

Definition at line 96 of file xtoa.cpp.

{
xtoa(val, buf, radix, 0);
return buf;
}