home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / zoo_src / z201src2 / various.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-25  |  2.4 KB  |  75 lines

  1. /* @(#) various.h 2.3 87/12/27 14:44:34 */
  2.  
  3. /*
  4. The contents of this file are hereby released to the public domain.
  5.  
  6.                            -- Rahul Dhesi 1986/11/14
  7. */
  8.  
  9. /*
  10. This files gives definitions for most external functions used by Zoo.
  11. If LINT_ARGS is defined, ANSI-style function prototypes are used, else
  12. normal K&R function declarations are used.
  13.  
  14. Note:  Always precede this file with an include of stdio.h because it uses
  15. the predefined type FILE.
  16.  
  17. Microsoft C and Turbo C use different conventions for specifying an
  18. incomplete argument list in a function prototype.  Microsoft C uses a
  19. trailing comma, while Turbo C uses three dots (...).  To take care
  20. of these peculiarities, the symbol MORE stands for incomplete arguments.
  21. For Turbo C we define it to be three dots and for Microsoft C we
  22. define it to be nothing.  This is done in options.h, so options.h must
  23. always be included before various.h is included.
  24. */
  25.  
  26. #ifndef PARMS
  27. #ifdef LINT_ARGS
  28. #define    PARMS(x)        x
  29. #else
  30. #define    PARMS(x)        ()
  31. #endif
  32. #endif
  33.  
  34. FILE *fdopen PARMS ((int, char *));
  35. FILE *fopen PARMS ((char *, char *));
  36. char *fgets PARMS ((char *, int, FILE *));
  37. char *gets PARMS ((char *));
  38. char *malloc PARMS ((unsigned int));
  39. char *realloc PARMS ((char *, unsigned int));
  40. char *strcat PARMS ((char *, char *));
  41. char *strchr PARMS ((char *, int));
  42. char *strcpy PARMS ((char *, char *));
  43. char *strdup PARMS ((char *));
  44. char *strlwr PARMS ((char *));
  45. char *strncat PARMS ((char *, char *, unsigned int));
  46. char *strncpy PARMS ((char *, char *, unsigned int));
  47. char *strrchr PARMS ((char *, int));
  48. int fclose PARMS ((FILE *));
  49. int fflush PARMS ((FILE *));
  50. int fgetc PARMS ((FILE *));
  51. int fgetchar PARMS (());
  52. int fprintf PARMS ((FILE *, char *, MORE));
  53. int fputchar PARMS ((int));
  54. int fputs PARMS ((char *, FILE *));
  55.  
  56. #ifdef ALWAYS_INT
  57. int fputc PARMS ((int, FILE *));
  58. int fread PARMS ((VOIDPTR, int, int, FILE *));
  59. int fwrite PARMS ((VOIDPTR, int, int, FILE *));
  60. #else
  61. int fputc PARMS ((char, FILE *));
  62. int fread PARMS ((VOIDPTR, unsigned, unsigned, FILE *));
  63. int fwrite PARMS ((VOIDPTR, unsigned, unsigned, FILE *));
  64. #endif /* ALWAYS_INT */
  65.  
  66. int fseek PARMS ((FILE *, long, int));
  67. int printf PARMS ((char *, MORE));
  68. int rename PARMS ((char *, char *));
  69. int setmode PARMS ((int, int));
  70. int strcmp PARMS ((char *, char *));
  71. int strncmp PARMS ((char *, char *, unsigned int));
  72. int unlink PARMS ((char *));
  73. long ftell PARMS ((FILE *));
  74. unsigned int strlen PARMS ((char *));
  75.