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

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