NumToStringC returns string byte length

This commit is contained in:
Iliyas Jorio 2021-01-03 17:26:20 +01:00
parent 19b84a4107
commit aa853a747f
2 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ void FlushEvents(short, short)
TODOMINOR();
}
void NumToStringC(long theNum, Str255 theString)
int NumToStringC(long theNum, Str255 theString)
{
snprintf(theString, 256, "%ld", theNum);
return snprintf(theString, 256, "%ld", theNum);
}
//-----------------------------------------------------------------------------

View File

@ -250,7 +250,7 @@ void SysBeep(short duration);
void FlushEvents(short, short);
void NumToStringC(long theNum, Str255 theString);
int NumToStringC(long theNum, Str255 theString);
//-----------------------------------------------------------------------------
// Input