2018-02-25 11:14:43 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
#include <_cheader.h>
|
2018-02-25 08:13:54 +03:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <va_list.h>
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
_Begin_C_Header
|
|
|
|
|
2018-05-04 11:53:31 +03:00
|
|
|
typedef struct _FILE FILE;
|
2018-10-12 06:45:21 +03:00
|
|
|
#define __DEFINED_FILE
|
2018-05-04 11:53:31 +03:00
|
|
|
|
2018-07-01 03:37:05 +03:00
|
|
|
#define BUFSIZ 8192
|
2018-02-25 08:13:54 +03:00
|
|
|
|
|
|
|
extern FILE * stdin;
|
|
|
|
extern FILE * stdout;
|
|
|
|
extern FILE * stderr;
|
|
|
|
|
|
|
|
#define EOF (-1)
|
|
|
|
|
|
|
|
#define SEEK_SET 0
|
|
|
|
#define SEEK_CUR 1
|
|
|
|
#define SEEK_END 2
|
|
|
|
|
|
|
|
extern FILE * fopen(const char *path, const char *mode);
|
|
|
|
extern int fclose(FILE * stream);
|
|
|
|
extern int fseek(FILE * stream, long offset, int whence);
|
|
|
|
extern long ftell(FILE * stream);
|
2018-02-25 11:14:43 +03:00
|
|
|
extern FILE * fdopen(int fd, const char *mode);
|
2018-06-25 06:11:33 +03:00
|
|
|
extern FILE * freopen(const char *path, const char *mode, FILE * stream);
|
2018-02-25 08:13:54 +03:00
|
|
|
|
|
|
|
extern size_t fread(void *ptr, size_t size, size_t nmemb, FILE * stream);
|
|
|
|
extern size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE * stream);
|
|
|
|
|
|
|
|
extern int fileno(FILE * stream);
|
|
|
|
extern int fflush(FILE * stream);
|
|
|
|
|
2018-07-19 12:50:15 +03:00
|
|
|
extern int vasprintf(char ** buf, const char *fmt, va_list args);
|
|
|
|
extern int sprintf(char *buf, const char *fmt, ...);
|
|
|
|
extern int fprintf(FILE *stream, const char *fmt, ...);
|
|
|
|
extern int printf(const char *fmt, ...);
|
2018-06-10 13:31:18 +03:00
|
|
|
extern int snprintf(char * buf, size_t size, const char * fmt, ...);
|
2018-06-25 09:45:32 +03:00
|
|
|
extern int vsprintf(char * buf, const char *fmt, va_list args);
|
2018-06-25 14:15:45 +03:00
|
|
|
extern int vsnprintf(char * buf, size_t size, const char *fmt, va_list args);
|
2018-07-19 13:12:49 +03:00
|
|
|
extern int vfprintf(FILE * device, const char *format, va_list ap);
|
2018-08-21 15:50:52 +03:00
|
|
|
extern int vprintf(const char *format, va_list ap);
|
2018-02-25 08:13:54 +03:00
|
|
|
|
2018-02-25 13:07:56 +03:00
|
|
|
extern int puts(const char *s);
|
2018-02-25 08:13:54 +03:00
|
|
|
extern int fputs(const char *s, FILE *stream);
|
|
|
|
extern int fputc(int c, FILE *stream);
|
2018-08-21 15:50:52 +03:00
|
|
|
extern int putc(int c, FILE *stream);
|
2018-07-20 02:23:11 +03:00
|
|
|
extern int putchar(int c);
|
2018-02-25 08:13:54 +03:00
|
|
|
extern int fgetc(FILE *stream);
|
2018-08-21 15:50:52 +03:00
|
|
|
extern int getc(FILE *stream);
|
2018-02-25 11:43:31 +03:00
|
|
|
extern char *fgets(char *s, int size, FILE *stream);
|
2018-08-21 15:50:52 +03:00
|
|
|
extern int getchar(void);
|
2018-02-25 08:13:54 +03:00
|
|
|
|
2018-02-25 11:43:31 +03:00
|
|
|
extern void rewind(FILE *stream);
|
2018-02-25 11:14:43 +03:00
|
|
|
extern void setbuf(FILE * stream, char * buf);
|
2018-05-04 07:11:06 +03:00
|
|
|
|
|
|
|
extern void perror(const char *s);
|
2018-05-04 11:53:31 +03:00
|
|
|
|
|
|
|
extern int ungetc(int c, FILE * stream);
|
2018-05-08 16:49:53 +03:00
|
|
|
|
|
|
|
extern int feof(FILE * stream);
|
2018-05-09 11:02:31 +03:00
|
|
|
extern void clearerr(FILE * stream);
|
2018-06-25 06:11:33 +03:00
|
|
|
extern int ferror(FILE * stream);
|
|
|
|
|
|
|
|
extern char * strerror(int errnum);
|
2018-05-09 11:02:31 +03:00
|
|
|
|
2018-05-15 06:39:38 +03:00
|
|
|
extern int _fwouldblock(FILE * stream);
|
|
|
|
|
2018-06-25 06:11:33 +03:00
|
|
|
extern FILE * tmpfile(void);
|
|
|
|
|
|
|
|
extern int setvbuf(FILE * stream, char * buf, int mode, size_t size);
|
|
|
|
|
2018-06-25 07:15:09 +03:00
|
|
|
extern int remove(const char * pathname);
|
|
|
|
extern int rename(const char * oldpath, const char * newpath);
|
|
|
|
|
2018-06-25 06:11:33 +03:00
|
|
|
#define _IONBF 0
|
|
|
|
#define _IOLBF 1
|
|
|
|
#define _IOFBF 2
|
|
|
|
|
2018-06-25 07:15:09 +03:00
|
|
|
extern char * tmpnam(char * s);
|
|
|
|
#define L_tmpnam 256
|
2018-10-10 03:39:54 +03:00
|
|
|
|
|
|
|
extern int vsscanf(const char *str, const char *format, va_list ap);
|
|
|
|
extern int sscanf(const char *str, const char *format, ...);
|
2018-10-10 05:30:25 +03:00
|
|
|
extern int vfscanf(FILE * stream, const char *format, va_list ap);
|
|
|
|
extern int fscanf(FILE *stream, const char *format, ...);
|
2018-10-12 04:35:28 +03:00
|
|
|
extern int scanf(const char *format, ...);
|
|
|
|
|
|
|
|
typedef long fpos_t;
|
|
|
|
|
|
|
|
extern int fgetpos(FILE *stream, fpos_t *pos);
|
|
|
|
extern int fsetpos(FILE *stream, const fpos_t *pos);
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
_End_C_Header;
|