diff --git a/src/Pomme.cpp b/src/Pomme.cpp index 350518f..603c5e9 100644 --- a/src/Pomme.cpp +++ b/src/Pomme.cpp @@ -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); } //----------------------------------------------------------------------------- diff --git a/src/Pomme.h b/src/Pomme.h index 769e3ca..ae940bc 100644 --- a/src/Pomme.h +++ b/src/Pomme.h @@ -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