home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / STORM2.DMS / in.adf / Includes.LHA / stdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-28  |  2.0 KB  |  97 lines

  1. #ifndef _INCLUDE_STDIO_H
  2. #define _INCLUDE_STDIO_H
  3.  
  4. /*
  5. **  $VER: stdio.h 10.1 (19.7.95)
  6. **  Includes Release 40.15
  7. **
  8. **  (C) Copyright 1995 Haage & Partner
  9. **     All Rights Reserved
  10. */
  11.  
  12. struct stream;
  13. typedef stream FILE;
  14. extern FILE std__in, std__out, std__err;
  15.  
  16. #ifndef NULL
  17. #define NULL 0
  18. #endif
  19.  
  20. typedef unsigned size_t;
  21.  
  22. #define stdin (&std__in)
  23. #define stdout (&std__out)
  24. #define stderr (&std__err)
  25.  
  26. #define EOF (-1)
  27.  
  28. int getc(FILE *);
  29. int fgetc(FILE*);
  30. int getchar (void);
  31. int ungetc(int, FILE*);
  32.  
  33. #define STREAM_MAXSTRING 80     // maximal von "gets" in String gelesene Zeichen
  34. char *fgets(char*, int, FILE*);
  35. char *gets(char*);
  36.  
  37. int fputc(int, FILE*);
  38. int putc(int, FILE*);
  39. int putchar(int);
  40. int fputs(const char*, FILE*);
  41. int puts(const char*);
  42. void perror(const char*);
  43.  
  44. #define FILENAME_MAX 200
  45. #define FOPEN_MAX 99999
  46. FILE *fopen(const char*, const char*);
  47. FILE *freopen(const char*, const char*, FILE*);
  48. int fclose(FILE*);
  49. int feof(FILE*);
  50. int ferror(FILE*);
  51. void clearerr(FILE*);
  52.  
  53. #define _IOFBF 1
  54. #define _IOLBF (-1)
  55. #define _IONBF 0
  56. #define BUFSIZ 200
  57. int setvbuf(FILE*, char*, int, unsigned);
  58. void setbuf(FILE*, char*);
  59. int fflush(FILE*);
  60.  
  61. int printf(const char*, ...);
  62. int fprintf(FILE*, const char*, ...);
  63. int sprintf(char*, const char*, ...);
  64. typedef unsigned va_list;
  65. int vprintf(const char*, va_list);
  66. int vfprintf(FILE*, const char*, va_list);
  67. int vsprintf(char*, const char*, va_list);
  68.  
  69. int scanf(const char*, ...);
  70. int fscanf(FILE*, const char*, ...);
  71. int sscanf(const char*, const char*, ...);
  72.  
  73. int remove(const char*);
  74. int rename(const char*, const char*);
  75.  
  76. #define L_tmpnam 40
  77. #define TMP_MAX 0x10000
  78. char *tmpnam (char s[L_tmpnam]);
  79. FILE *tmpfile (void);
  80.  
  81. unsigned fread(void *, unsigned, unsigned, FILE*);
  82. unsigned fwrite(const void *, unsigned, unsigned, FILE*);
  83.  
  84. #define SEEK_CUR 0
  85. #define SEEK_END 1
  86. #define SEEK_SET (-1)
  87. typedef int fpos_t;
  88. int fseek(FILE*, long, int);
  89. long ftell(FILE*);
  90. void rewind(FILE*);
  91. int fgetpos(FILE*, int*);
  92. int fsetpos(FILE*, const int*);
  93.  
  94. void exit(int);
  95. #endif
  96.  
  97.