/*
* RGB2R-C128-Kassenprogramm
- * (c) 2007 phil_fry, sECuRE, sur5r
+ * (c) 2007-2008 phil_fry, sECuRE, sur5r
* See LICENSE for license information
*
*/
#include "general.h"
/*
- * Liest (maximal 31) Zeichen ein, bis Enter gedr�ckt wird.
+ * Liest (maximal 31) Zeichen ein, bis Enter gedrückt wird.
* Vorsicht: Es wird ein statischer Buffer benutzt, sodass man
* das Ergebnis via strdup() retten muss, bevor man get_input()
* erneut aufruft
if (len >= maxlen)
return NULL;
// workaround to produce a leading zero for cents.. %0.2d won't work
- sprintf(s, "%d,%s%dEUR", cent / 100, (cent<10?"0":""), cent % 100);
+ sprintf(s, "%d,%s%dEUR", cent / 100, ((cent%100)<10?"0":""), cent % 100);
return s;
}