home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / stdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.9 KB  |  93 lines

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