Advertisement
bueddl

Untitled

Apr 8th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1.  
  2. #if __STDC_VERSION__ < 199901L
  3. int cprintf(const char *format, ...)
  4. #else
  5. int cprintf(const char *restrict format, ...)
  6. #endif
  7. {
  8.     va_list args;
  9.     int ret;
  10.     char format_expanded[_translate_format_str(NULL, format)];
  11.  
  12.     va_start(args, format);
  13.     _translate_format_str(format_expanded, format);
  14.     ret = vprintf(format_expanded, args);
  15.     va_end(args);
  16.    
  17.     return ret;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement