b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

char[]数组 c库函数

电脑杂谈  发布时间:2017-12-18 23:04:52  来源:网络整理

*c   string数组_char[]数组_char数组是什么

1int fclose(FILE *stream)

关闭流 stream。刷新所有的缓冲区。

2void clearerr(FILE *stream)

清除给定流 stream 的文件结束和错误标识符。

3int feof(FILE *stream)

测试给定流 stream 的文件结束标识符。

4int ferror(FILE *stream)

测试给定流 stream 的错误标识符。

5int fflush(FILE *stream)

刷新流 stream 的输出缓冲区。

6int fgetpos(FILE *stream, fpos_t *pos)

获取流 stream 的当前文件位置,并把它写入到 pos。

7FILE *fopen(const char *filename, const char *mode)

使用给定的模式 mode 打开 filename 所指向的文件。

8size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)

从给定流 stream 读取数据到 ptr 所指向的数组中。

9FILE *freopen(const char *filename, const char *mode, FILE *stream)

把一个新的文件名 filename 与给定的打开的流 stream 关联,同时关闭流中的旧文件。

10int fseek(FILE *stream, long int offset, int whence)

设置流 stream 的文件位置为给定的偏移 offset,参数 offset 意味着从给定的 whence 位置查找的字节数。

11int fsetpos(FILE *stream, const fpos_t *pos)

设置给定流 stream 的文件位置为给定的位置。参数 pos 是由函数 fgetpos 给定的位置。

12long int ftell(FILE *stream)

返回给定流 stream 的当前文件位置。

13size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)

把 ptr 所指向的数组中的数据写入到给定流 stream 中。

14int remove(const char *filename)

*c   string数组_char[]数组_char数组是什么

删除给定的文件名 filename,以便它不再被访问。

15int rename(const char *old_filename, const char *new_filename)

把 old_filename 所指向的文件名改为 new_filename。

16void rewind(FILE *stream)

设置文件位置为给定流 stream 的文件的开头。

17void setbuf(FILE *stream, char *buffer)

定义流 stream 应如何缓冲。

18int setvbuf(FILE *stream, char *buffer, int mode, size_t size)

另一个定义流 stream 应如何缓冲的函数。

19FILE *tmpfile(void)

以二进制更新模式(wb+)创建临时文件。

20char *tmpnam(char *str)

生成并返回一个有效的临时文件名,该文件名之前是不存在的。

21int fprintf(FILE *stream, const char *format, ...)


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-54327-1.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 鄢智林
      鄢智林

      为网络时代的新生代经济助力

    热点图片
    拼命载入中...