Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

itoa.cpp File Reference

Go to the source code of this file.

Functions

char * _itoa (unsigned i, char *a, unsigned r)
char * itoa (int i, char *a, int r)


Function Documentation

char* _itoa unsigned  i,
char *  a,
unsigned  r
[static]
 

Definition at line 5 of file itoa.cpp.

References _itoa().

00006 {
00007         if (i/r > 0) a = _itoa(i/r,a,r);
00008         *a =
00009 "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i%r];
00010         return a+1;
00011 }

char* itoa int  i,
char *  a,
int  r
 

Definition at line 13 of file itoa.cpp.

References _itoa().

Referenced by Galaxy::evMessage(), PlayGame::evMessage(), Ars::ArsApplication::GetCoordStr(), Parameters::GetDenomination(), HallOfFame::SetupWindow(), and Ars::Window::SetWndText().

00014 {
00015         r = ((r < 2) || (r > 36)) ? 10 : r;
00016         if (i < 0)
00017         {
00018                 *a = '-';
00019                 *_itoa(-i,a+1,r) = 0;
00020         }
00021         else *_itoa(i,a,r) = 0;
00022         return a;
00023 }


Generated on Fri Dec 5 04:06:06 2003 for Borqueror by doxygen 1.3.3