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.
 
 
 

19 lines
313 B

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