Endsieg77's Studio.

c_file

2021/01/07 Share
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* file I/O */
size_t fread(void *buffer, size_t size, size_t count, FILE *fstream);
size_t fwrite(void *buffer, size_t size, size_t count, FILE *fstream);
int feof(FILE *fstream);
void rewind(FILE *fstream); /* rewind to the BOF */
void fseek(FILE *fstream, long offset, int fromwhere);
/** SEEK_SET(beginning) Macro defined 0
* SEEK_CUR(current) Macro defined 1
* SEEK_END(end) Macro defined 2
*/
void fclose(FILE *fstream); /* shall be paired with fopen() */
void fputc(char c, FILE *fstream);
void fputs(char *string, FILE *fstream);
/* different from fputc/s, the 1st param of fprintf/scanf is a file pointer */
int fprintf(FILE *stream, const char *format, ...);
int fscanf(FILE *stream, const char *format, ...);

/* sort function included in stdlib.h: */
void qsort(void *base, /* Pointer to the array */
size_t num, /* Length of the array */
size_t width, /* Size of the elems */
int(__cdecl*compare)(const void*,const void*));
CATALOG