Ejemplo n.º 1
0
 void UlamTypeInt::getDataLongAsString(const u64 data, char * valstr, char prefix)
 {
   if(prefix == 'z')
     sprintf(valstr,"%s", ToSignedDecimal(data).c_str());
   else
     sprintf(valstr,"%c%s", prefix, ToSignedDecimal(data).c_str());
 }
Ejemplo n.º 2
0
Archivo: File.cpp Proyecto: StStep/ULAM
 s32 File::write_decimal_long(const s64 data)
   {
     // We must avoid printfs involving 64 bit quantities,
     // due to ANSI C99 limitations, so we do this instead.
     std::string str = ToSignedDecimal(data);
     return write(str.c_str());
   }