home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activetcltk / ActiveTcl8.3.4.1-8.win32-ix86.exe / ActiveTcl8.3.4.1-win32-ix86 / include / util / proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-22  |  2.6 KB  |  66 lines

  1.  
  2.  
  3. #ifndef PROTO_HEADER
  4. #define PROTO_HEADER
  5.  
  6. #if defined(__STDC__) || defined(__GNUC__) || defined(sgi)
  7. #define PROTO(ARGS)    ARGS
  8. #else
  9. #define PROTO(ARGS)    ()
  10. #endif
  11.  
  12. #ifdef AT_NIST
  13.  
  14. int    fprintf PROTO(( FILE *fp, char *s, ... ));
  15. int    printf PROTO(( char *s, ... ));
  16. int    fclose PROTO(( FILE *f ));
  17. int    strcasecmp PROTO(( char *s1, char *s2 ));
  18. int    fflush PROTO(( FILE *f ));
  19. int    fgetc PROTO((  FILE *f ));
  20. int    fputc PROTO(( char c, FILE *f ));
  21. int    fputs PROTO(( char *s, FILE *f ));
  22. long    ftell PROTO(( FILE *f ));
  23. int    fwrite PROTO(( char *p, int n, int n2, FILE *f ));
  24. int    rewind PROTO(( FILE *f ));
  25. int     fseek PROTO((FILE *, long int, int));
  26. size_t  fread PROTO((void *, size_t, size_t, FILE *));
  27. void *  malloc PROTO((size_t));
  28. void    free PROTO((void *));
  29. int     vsprintf PROTO((char *, const char *, ...));
  30. int     fscanf PROTO((FILE *, const char *, ...));
  31. char *  fgets PROTO((char *, int, FILE *));
  32. /* void    qsort PROTO((void *, size_t, size_t, int (*) (const void *, const void *))); */
  33. extern int                    _filbuf PROTO((FILE *));
  34. extern int                    strcmp PROTO((const char *, const char *));
  35. extern char *                 strchr PROTO((const char *, int));
  36. extern int                    strcmp PROTO((const char *, const char *));
  37. extern int                    strncmp PROTO((const char *, const char *, size_t));
  38.  
  39. extern int                    strncasecmp PROTO((const char *, const char *, int));
  40. extern int                    unlink PROTO((const char *));
  41. extern int                    rename PROTO((const char *, const char *));
  42. extern int                    __flsbuf PROTO((int, FILE *));
  43. extern void *                 memset PROTO((void *, int, size_t));
  44. extern int                    _flsbuf PROTO((unsigned int, FILE *));
  45. extern int                    bcmp PROTO((const void *, const void *, int));
  46. extern void                   bcopy PROTO((const void *, void *, int));
  47. extern int                    system PROTO((const char *));
  48. extern void                   perror PROTO((const char *));
  49. extern char *                 index PROTO((const char *, int));
  50. extern int              pclose PROTO((FILE *));
  51.  
  52. extern size_t                 strlen PROTO((const char *s));
  53. extern char *                 strcpy PROTO((char *s1, const char *s2));
  54.  
  55. /* time(), toupper(), and tolower() not in /usr/include/X.h */
  56. extern time_t    time PROTO((time_t *t ));   /* from /usr/5include/time.h  */
  57. extern int    toupper PROTO((int c));     /* from /usr/5include/ctype.h */
  58. extern int    tolower PROTO((int c));     /* from /usr/5include/ctype.h */
  59.  
  60. extern int sscanf PROTO((const char *, const char *, ...));
  61. extern int      isatty PROTO((int));
  62.  
  63. #endif
  64.  
  65. #endif
  66.