home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / NeXT-Icons / next-icon@gun.com / Apps / ImagePortfolio / threads.subproj / threadStdio.h < prev   
Encoding:
Text File  |  1993-06-03  |  1.4 KB  |  34 lines

  1. // -------------------------------------------------------------------------------------
  2. // threadStdio.h
  3. // Thread safe printf(), sprintf(), etc.
  4. // -------------------------------------------------------------------------------------
  5. #import <stdio.h>
  6.  
  7. // -------------------------------------------------------------------------------------
  8. void thread_initStdio();
  9.  
  10. // -------------------------------------------------------------------------------------
  11. #define    vprintf        thread_vprintf
  12. #define    printf        thread_printf
  13. #define    vfprintf    thread_vfprintf
  14. #define    fprintf        thread_fprintf
  15. #define    vsprintf    thread_vsprintf
  16. #define    sprintf        thread_sprintf
  17. int thread_vprintf(const char *fmt, va_list arg);
  18. int thread_printf(const char *fmt, ...);
  19. int thread_vfprintf(register FILE *fhnd, const char *fmt, va_list arg);
  20. int thread_fprintf(register FILE *iop, const char *fmt, ...);
  21. int thread_vsprintf(char *str, const char *fmt, va_list arg);
  22. int thread_sprintf(char *str, const char *fmt, ...);
  23.  
  24. // -------------------------------------------------------------------------------------
  25. #define    vfscanf        thread_vfscanf
  26. #define    scanf        thread_scanf
  27. #define    sscanf        thread_sscanf
  28. #define    fscanf        thread_fscanf
  29. int thread_vfscanf(FILE *fhnd, const char *fmt, va_list arg);
  30. int thread_scanf(const char *fmt, ...);
  31. int thread_fscanf(FILE *iop, const char *fmt, ...);
  32. int thread_sscanf(register const char *str, const char *fmt, ...);
  33.  
  34.