![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tutorialspoint.com
文章平均质量分 61
tanlooger
这个作者很懒,什么都没留下…
展开
-
C库函数 - strcmp()
描述 C库函数strcmp(const char *str1, const char *str2)对str1和str2所指向的字符串进行比较。 声明 下面是strcmp()函数的声明: int strcmp(const char *str1, const char *str2) 参数 str1 -- 要比较的第一个字符串。 str2 -翻译 2015-12-24 08:55:13 · 832 阅读 · 0 评论 -
C库宏定义 - assert()
描述 C库中定义的宏void assert(int expression)可以诊断是否将信息写入到标准错误文件中。换句话说,他是C程序中的诊断语句。 声明 下面是assert()宏声明: void assert(int expression); 参数 expression − 可以是一个变量或其他C表达式。如果表达式结果为真,assert()什么也不做。翻译 2015-12-23 22:22:52 · 693 阅读 · 0 评论 -
C库函数 - puts()
描述 C库函数 int puts(const char *str) 会将字符串写入到标准输出,但不包括null字符。会在字符串末尾自动加换行符。 声明 下面是 puts() 函数的声明: int puts(const char *str) 参数 str -- 要写入到stdout的C字符串 返回值 如果成功,返回一个非负整数。出现错翻译 2015-12-23 16:19:37 · 729 阅读 · 0 评论 -
C保留字 - typedef
C编程语言提供了一个typedef关键字,你可以用他为类型提供一个别名。下面示例为unsigned char类型创建别名BYTE typedef unsigned char BYTE; 如上定义之后,就可以像使用unsigned char一样来使用BYTE了,如下... BYTE b1, b2; 习惯上,使用大写字母来提醒用户这是个类型别名,当然你也可以如翻译 2015-12-23 11:27:03 · 446 阅读 · 0 评论 -
C库函数 - memset()
描述 C库函数 void *memset(void *str, int c, size_t n) 将字符 c(unsigned char类型)复制到str字符串的前n个字节。 声明 下面是 memset() 函数的声明: void *memset(void *str, int c, size_t n) 参数 str -- 指向相应内存块的指针。翻译 2015-12-22 16:44:58 · 327 阅读 · 0 评论 -
C库函数 - fseek()
描述 C库函数 int fseek(FILE *stream, long int offset, int whence) 根据给定的偏移量设置流的文件位置。 声明 int fseek(FILE *stream, long int offset, int whence) 参数 stream − 指向FILE对象的指针,用来标识数据流。 offset翻译 2015-12-25 13:16:12 · 367 阅读 · 0 评论 -
C库函数 - ferror()
描述 C库函数 int ferror(FILE *stream) 对数据流进行错误测试。 声明 int ferror(FILE *stream) 参数 stream − 标识数据流的FILE对象指针。 返回值 If the error indicator associated with the stream was set, the funct翻译 2015-12-25 19:08:32 · 1472 阅读 · 0 评论