You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
301 B

  1. #include "debug.h"
  2. #include <stdio.h>
  3. #include <stdarg.h>
  4. int verb_count = 0;
  5. int func_fprintf(const char *func, FILE * stream, const char *format, ...)
  6. {
  7. va_list ap;
  8. int ret;
  9. fprintf(stream, "%s: ", func);
  10. va_start(ap, format);
  11. ret = vfprintf(stream, format, ap);
  12. va_end(ap);
  13. return ret;
  14. }