- 博客(3)
- 收藏
- 关注
转载 Linux C学习笔记 —— 字符串处理函数(string.h)
char *strcpy(char *s1, const char *s2) 将字符串s2复制到字符数组s1中char *strncpy(char *s1, const char *s2, size_t n) 将字符串s2开始的n个字节复制到字符数组s1中char *strcat(char *s1, const char *s2) 将字符串s2追加到字符数组s1中的字符串后cha
2017-12-20 22:25:46 1187
转载 Linux C学习笔记 —— 字符串转换函数(stdlib.h)
double atof(const char *nptr) 将字符串转换成双精度浮点型数int atoi(const char *nptr) 将字符串转换成整形数long atol(const char *nptr) 将字符串转换成长整形数double strtod(const char *nptr, char **endptr) 将字符串转换成双精度浮点型数long in
2017-12-20 21:55:56 421
转载 Linux C学习笔记 —— 字符处理库函数(ctype.h)
int isalnum(int c) 测试c是否为字母或数字int isalpha(int c) 测试c是否为字母int _iscsym(int c) 测试c是否为字母、下划线或数字int _iscsymf(int c) 测试c是否为字母、下划线int isdigit(int c) 测试c是否为十进制数字int islower(int c) 测试c是否为小写字母
2017-12-20 21:32:19 258
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人