FILE *fopen(const char *pathname, const char *mode)
#include <stdio.h>
注:Linux不区分二进制文件和文本文件,这一点与DOS、Windows系统中是有区分的。
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
#include <stdio.h>
size_t fwrite(void *ptr, size_t size, size_t nmemb, FILE *stream)
#include <stdio.h>
int fgetc(FILE *stream)
#include <stdio.h>
int fputc(int c,FILE *stream)
#include <stdio.h>
int fscanf(FILE *stream, const char *format[, ...])
#include <stdio.h>
int fprintf(FILE *stream, const char *format[, ...])
#include <stdio.h>
int fseek(FILE *stream, long offset, int whence)
#include <stdio.h>
char *getcwd(char *buf, size_t size)
#include <unistd.h>
int mkdir(char *dir, mode_t mode)//Linux C函数没有写
#include <sys/stat.h>
mode 参见《Linux C 函数》中的chmod
int sscanf(const char *str, const char *format[, ...])
#include <stdio.h>
sprintf(const char *str, const char *format[, ...])
#include <stdio.h>
...