-Some doxygening
-Removed useless parts of the doxyfile and enabled DOT to generate callgraph and includegraphs. Use \callgraph or \callergraph where you think it'd be nice to have. -Replaced Num2str with a call to sprintf. Less code is better ! git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1165 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
18
misc.c
18
misc.c
@@ -759,24 +759,8 @@ unsigned long Memory_free(void)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Transformer un nombre (entier naturel) en chaîne
|
||||
void Num2str(dword number,char * str,byte nb_char)
|
||||
{
|
||||
int index;
|
||||
|
||||
for (index=nb_char-1;index>=0;index--)
|
||||
{
|
||||
str[index]=(number%10)+'0';
|
||||
number/=10;
|
||||
if (number==0)
|
||||
for (index--;index>=0;index--)
|
||||
str[index]=' ';
|
||||
}
|
||||
str[nb_char]='\0';
|
||||
}
|
||||
|
||||
// Arrondir un nombre réel à la valeur entière la plus proche
|
||||
// TODO : this should probably be replaced with round() from C99...
|
||||
short Round(float value)
|
||||
{
|
||||
short temp=value;
|
||||
|
||||
Reference in New Issue
Block a user