All pastes #128933 Raw Edit

imk

public c v1 · immutable
#128933 ·published 2006-08-13 07:45 UTC
rendered paste body
// 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);