Linux standard IO learning

  

FILE *fopen(const char* pathname, const char* type); int fclose(FILE *fp); int fgetc(FILE *fp); int fputc(int c, FILE *fp); Char *fgets(char *buf, int n, FILE *fp); int fputs(const char *str, FILE *fp); Above, the return value is of type int, return EOF if error occurs, the rest of the blue return value For pointers, the error is NULL read and write binary size_t fread(void *ptr, size_t size, size_t nobj, FILE *fp)size_t fwrite(void *ptr, size_t size, size_t nobj, FILE *fp)linux system IO( Non-standard)
int open(const char* path, int oflag)ssize_t read(int fd, void *buf, size_t nbytes)ssize_t write(int fd, void *buf, size_t nbytes)off_t lseek(int fd, off_t Offset, int whence)close(fd)
zh-CN"],null,[0.98716927],zh-CN"]]]

Copyright © Windows knowledge All Rights Reserved