imk
public c v1 · immutable// this is just a test using the sample from the manpagevoid ColorPrintF(int color, char *fmt, ...) { va_list ap; int d; char c, *p, *s; pspDebugScreenSetTextColor(color); va_start(ap, fmt); while(*fmt) { switch(*fmt++) { case 's': s = va_arg(ap, char *); printf("string %s\n", s); break; case 'd': d = va_arg(ap, int); printf("int %d\n", d); break; case 'c': c = va_arg(ap, char); printf("char %c\n", c); break; } } va_end(ap); pspDebugScreenSetTextColor(WHITE);