ゞ .miracle_千年小虫
退化 | 进化.

导航

 

1、atof():将字符串转换成浮点数

#include <stdlib.h>

double atof(const char *str);

 

2、atoi():将字符串转换成整数

#include <stdlib.h>

int atoi(const char *str);

 

3、atol():将字符串转换成长整型

#include <stdlib.h>

long atol(const char *str);

 

4、isalnum():当字母或数字字符时,返回真值

#include <ctype.h>

int isalnum(int ch);

 

5、isalpha():当字母字符时,返回真值

#include <ctype.h>

int isalpha(int ch);

 

6、iscntrl():当控制字符时,返回真值

#include <ctype.h>

int iscntrl(int ch);

 

7、isdigit():当数字字符时,返回真值

#include <ctype.h>

Iint isdigit(int ch);

 

8、isgraph():当非空格可打印字符时,返回真值

#include <ctype.h>

int isgraph(int ch);

 

9、islower():当小写字母字符时,返回真值

#include <ctype.h>

int islower(int ch);

 

10、Iisprint():当可打印字符时,返回真值

#include <ctype.h>

int isprint(int ch);

 

11、ispunct():当标点字符时,返回真值

#include <ctype.h>

int ispunct(int ch);

 

12、isspace():当空格字符时,返回真值

#include <ctype.h>

int isspace(int ch);

 

13、isupper():当大写字母字符时,返回真值

#include <ctype.h>

int isupper(int ch);

 

14、isxdigit():当十六进制字符时,返回真值

#include <ctype.h>

int isxdigit(int ch);

 

15、memchr():在某一内存范围中查找一特定字符

#include <string.h>

void *memchr(const void *buffer, int ch, size_t count);

 

16、memcmp():比较内存内容

#include <string.h>

int memcmp(const void *buffer1, const void *buffer2, size_t count);

 

17、memcpy():拷贝内存内容

#include <string.h>

void *memcpy(void *to, const void *from, size_t count);

 

18、memmove():拷贝内存内容

#include <string.h>

void *memmove(void *to, const void *from, size_t count);

 

19、memset():将一段内存空间填入某值

#include <string.h>

void *memset(void *buffer, int ch, size_t count);

 

20、strcat():连接两个字符串

#include <string.h>

char *strcat(char *str1, const char *str2);

 

21、strchr():查找某一字符在字符串中首次出现的位置

#include <string.h>

char *strchr(const char *str, int ch);

 

22、strcmp():比较两个字符串

#include <string.h>

int strcmp(const char *str1, const char *str2);

 

23、strcoll():采用目前区域的字符排列次序来比较字符串

#include <string.h>

int strcoll(const char *str1, const char *str2);

 

24、strcpy():拷贝字符串

#include <string.h>

char *strcpy(char *to, const char *from);

 

25、strcspn():在某字符串中匹配指定字符

#include <string.h>

size_t strcspn(const char *str1, const char *str2);

 

26、strerror():返回错误码对应的文本信息

#include <string.h>

char *strerror(int num);

 

27、strlen():返回指定字符串的长度

#include <string.h>

size_t strlen(char *str);

 

28、strncat():连接某一长度的两个字符串

#include <string.h>

char *strncat(char *str1, const char *str2,size_t count);

 

29、strncmp():比较某一长度的两个字符串

#include <string.h>

int strncmp(const char *str1, const char *str2, size_t count);

 

30、strncpy():复制某一长度的一个字符串到另一字符串中

#include <string.h>

char *strncpy(char *to, const char *from, size_t count);

 

31、strpbrk():查找某字符在另一字符串中首次出现的位置

#include <string.h>

char *strpbrk(const char *str1, const char *str2);

 

32、strrchr():查找某字符在字符串中末次出现的位置

#include <string.h>

char *strrchr(const char *str, int ch);

 

33、strspn():返回子串的长度,子串的字符都出现包含于另一字符串中

#include <string.h>

size_t strspn(const char *str1, const char *str2);

 

34、strstr():在一字符串中查找指定的子串首次出现的位置

#include <string.h>

char *strstr(const char *str1, const char *str2);

 

35、strtod():将字符串转换成浮点数

#include <stdlib.h>

double strtod(const char *start, char **end);

 

36、strtok():查找指定字符之前的子串

#include <string.h>

char *strtok(char *str1, const char *str2);

 

37、strtol():将字符串转换成长整型数

#include <stdlib.h>

long strtol(const char *start, char **end, int base);

 

38、strtoul():将字符串转换成无符号长整型数

#include <stdlib.h>

unsigned long strtoul(const char *start, char **end, int base);

 

39、strxfrm():转换子串,可以用于字符串比较

#include <string.h>

size_t strxfrm(char *str1, const char *str2, size_t num);

 

40、tolower():将字符转换成小写字符

#include <ctype.h>

int tolower(int ch);

 

41、toupper():将字符转换成大写字符

#include <ctype.h>

int toupper(int ch);

posted on 2018-06-13 14:08  miracle_sl  阅读(320)  评论(0)    收藏  举报