随笔 - 192,  文章 - 0,  评论 - 2,  阅读 - 25万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
08 2019 档案
七、用户组
摘要:1、endgrent 表头文件 #include<grp.h> #include<sys/types.h> 定义函数 void endgrent(void); 函数说明 endgrent()用来关闭由getgrent()所打开的密码文件。 返回值 无 附加说明 无 2、endpwent 表头文件 # 阅读全文
posted @ 2019-08-31 17:37 Malphite 阅读(258) 评论(0) 推荐(0) 编辑
十二、格式化I/O
摘要:1、fprintf 表头文件 #include<stdio.h> 定义函数 int fprintf(FILE * stream, const char * format,.......); 函数说明 fprintf()会根据参数format 字符串来转换并格式化数据,然后将结果输出到参数stream 阅读全文
posted @ 2019-08-28 23:49 Malphite 阅读(223) 评论(0) 推荐(0) 编辑
十四、错误处理
摘要:1、ferror 表头文件 #include<stdio.h> 定义函数 int ferror(FILE *stream); 函数说明 ferror()用来检查参数stream 所指定的文件流是否发生了错误情况,如有错误发生则返回非0 值。 返回值 如果文件流有错误发生则返回非0 值。 2、perr 阅读全文
posted @ 2019-08-27 23:32 Malphite 阅读(142) 评论(0) 推荐(0) 编辑
八、数据结构和算法
摘要:1、crypt 表头文件 #define _XOPEN_SOURCE #include<unistd.h> 定义函数 char * crypt (const char *key,const char * salt); 函数说明 crypt()将使用Data Encryption Standard ( 阅读全文
posted @ 2019-08-26 22:49 Malphite 阅读(186) 评论(0) 推荐(0) 编辑
六、数学函数
摘要:1、abs 表头文件 #include<stdlib.h> 定义函数 int abs (int j) 函数说明 abs () 用来计算参数j的绝对值,然后将结果返回。 返回值 返回参数j的绝对值结果。 2、acos 表头文件 #include <math.h> 定义函数 double acos (d 阅读全文
posted @ 2019-08-25 16:33 Malphite 阅读(248) 评论(0) 推荐(0) 编辑
五、内存及字符串操作
摘要:1、bcmp 表头文件 #include<string.h> 定义函数 int bcmp ( const void *s1,const void * s2,int n); 函数说明 bcmp()用来比较s1 和s2 所指的内存区间前n 个字节,若参数n为0,则返回0。 返回值 若参数s1 和s2 所 阅读全文
posted @ 2019-08-25 15:40 Malphite 阅读(278) 评论(0) 推荐(0) 编辑
四、日期时间
摘要:1、asctime 表头文件 #include<time.h> 定义函数 char * asctime(const struct tm * timeptr); 函数说明 asctime()将参数timeptr 所指的tm结构中的信息转换成真实世界所使用的时间日期表示方法,然后将结果以字符串形态返回。 阅读全文
posted @ 2019-08-24 23:34 Malphite 阅读(209) 评论(0) 推荐(0) 编辑
三、内存管理
摘要:1、calloc 表头文件 #include <stdlib.h> 定义函数 void *calloc(size_t nmemb,size_t size); 函数说明 calloc()用来配置nmemb 个相邻的内存单位,每一单位的大小为size,并返回指向第一个元素的指针。这和使用下列的方式效果相 阅读全文
posted @ 2019-08-23 23:48 Malphite 阅读(226) 评论(0) 推荐(0) 编辑
二、字符串转换
摘要:1、atof 表头文件 #include <stdlib.h> 定义函数 double atof(const char* nptr) 函数说明 atof() 会扫描nptr字符串,跳过前面的空格字符,知道遇上数字或正负号才开始做转换,而再遇到非数字或字符串结束时('\0')才结束转换,并将结果返回。 阅读全文
posted @ 2019-08-22 09:12 Malphite 阅读(253) 评论(0) 推荐(0) 编辑
一、字符测试
摘要:1、isalnum 表头文件 #include<ctype.h> 定义函数 int isalnum(int c) 函数说明 检查参数c是否为英文字母或阿拉伯数字,在标准c中相当于使用isalpha(c) || isdigit(c) 返回值 若参数c为字符或数字,则返回TRUE,否则返回NULL 2、 阅读全文
posted @ 2019-08-21 13:34 Malphite 阅读(277) 评论(0) 推荐(0) 编辑
linux c函数参考手册
摘要:一、字符测试 isalnum(测试字符是否为英文字母或数字) isalpha(测试字符是否为英文字母) isascii(测试字符是否为ascii码字符) isblank(测试字符是否为空格字符) iscntrl(测试字符是否为ascii码的控制字符) isdigit(测试字符是否为阿拉伯数字) is 阅读全文
posted @ 2019-08-21 13:19 Malphite 阅读(2268) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示