/*
* RGB2R-C128-Kassenprogramm
- * (c) 2007-2008 phil_fry, sECuRE, sur5r
+ * © 2007-2009 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
return output;
}
+char retry_or_quit() {
+ char *c;
+ do {
+ cprintf("\r\nr)etry or q)uit?\r\n");
+ c = get_input();
+ } while ((*c != 'r') && (*c != 'q'));
+ return *c;
+}
+
char *format_euro(char *s, int maxlen, int cent){
int tmp = cent;
int len = strlen(",EUR");