Advertisement
Yosh

debug psplink

May 28th, 2012
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <stdarg.h>
  2.  
  3. int print_debug(char *format, ...)
  4. {
  5.     va_list args;
  6.     char * s = NULL;
  7.    
  8.    
  9.     s = (char*)malloc(strlen(format)+512);
  10.    
  11.    
  12.     va_start(args, format);
  13.     int r = vsprintf(s,format, args);
  14.     va_end(args);
  15.    
  16.     sceIoWrite(2, s, strlen(s));
  17.    
  18.    
  19.     free(s);
  20.    
  21.    
  22.     return r;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement