摘要: DescriptionThe C library functionvoid rewind(FILE *stream)sets the file position to the beginning of the file of the givenstream.DeclarationFollowing ... 阅读全文
posted @ 2015-11-30 21:03 清水汪汪 阅读(245) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe C library functionFILE *freopen(const char *filename, const char *mode, FILE *stream)associates a newfilenamewith the given open stream... 阅读全文
posted @ 2015-11-30 20:41 清水汪汪 阅读(260) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe C library functionFILE *tmpfile(void)creates a temporary file in binary update mode (wb+). The temporary file created is automatically ... 阅读全文
posted @ 2015-11-30 20:32 清水汪汪 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 头文件:#include 定义函数:char * strdup(const char *s);函数说明:strdup()会先用malloc()配置与参数s 字符串相同的空间大小,然后将参数s 字符串的内容复制到该内存地址,然后把该地址返回。该地址最后可以利用free()来释放。返回值:返回一字符串指... 阅读全文
posted @ 2015-11-30 18:28 清水汪汪 阅读(9133) 评论(0) 推荐(0) 编辑