c语言的读写函数,定位函数,错误函数
来源:互联网 发布:湖南软件开发公司 编辑:程序博客网 时间:2024/05/16 08:38
本文的所有函数均出自stdio.h文件里
一.以下是c里面可以 进行读的函数
1.格式化输入:
scanf (); int scanf (const char*, ...);
fscanf(); int fscanf (FILE*, const char*, ...);
sscanf(); int sscanf (const char*, const char*, ...);
2.字符化输入:
fgetc(); int fgetc (FILE*);
fgets(); char* fgets (char*, int, FILE*);
gets(); char* gets (char*);
ungetc(); int ungetc (int, FILE*);
3.用库函数:
getc(); int getc (FILE*);
getchar(); int getchar (void);
4.直接输入:
fread(): size_t fread (void*, size_t, size_t, FILE*);
二.以下是c里面可以进行写的函数
1. 格式化输出:
printf(); int printf (const char*, ...);
fprinft(); int fprintf (FILE*, const char*, ...);
sprintf(); int sprintf (char*, const char*, ...);
2.字符化输出:
fputc(); int fputc (int, FILE*);
fputs(); int fputs (const char*, FILE*);
puts(); int puts (const char*);
3.用库函数输出:
putchar(); int putchar (int);
putc(); int putc (int, FILE*);
4.直接输出:
fwrite(); size_t fwrite (const void*, size_t, size_t, FILE*);
三. 文件定位函数:
fseek(); int l fseek (FILE*, long, int);
ftell(); long ftell (FILE*);
rewind(): void rewind (FILE*);
fgetpos(): int fgetpos (FILE*, fpos_t*);
fsetpos(): int fsetpos (FILE*, const fpos_t*);
四. 错误函数:
feof(): int feof (FILE*); ferror(): int ferror (FILE*);
clearerr(): void clearerr (FILE*); perror(): void perror (const char*);
- c语言的读写函数,定位函数,错误函数
- c语言读写函数
- C语言字符串读写函数
- C语言 函数编程的常见错误
- C语言文件定位相关函数
- C语言中的刷新和定位函数
- C语言中的文件定位函数
- C语言小黑窗浮标定位gotoxy()函数
- C语言程序清屏和定位函数
- C语言中对文件的读写函数
- C语言lseek()函数:移动文件的读写位置
- C语言的fopen函数(文件操作/读写)
- C语言ftell()函数:获取文件读写指针的当前位置
- C语言fseek()函数:移动文件流的读写位置
- C语言的fopen函数(文件操作/读写)
- C语言的fopen函数(文件操作/读写)
- C语言的fopen函数(文件操作/读写)
- C语言的fopen函数(文件操作/读写)
- centOS5.5 安装 RPMforge
- 智能指针 (合集)
- 美团王兴的创业三原则
- GO GO GO
- 基础C++用法(合集)
- c语言的读写函数,定位函数,错误函数
- js判断远程图片是否存在
- How Network Address Translation Works
- 代码坏味与应对方案
- 【SSL/TLS】TLS Stack and HandShake detail
- GDB调试器用法
- phpMyAdmin链接表的附加功能尚未激活
- 世界上最致命的动物——澳洲"十二金刚"
- 日记0901