string.h的其他函数

来源:互联网 发布:淘宝首页搜索 编辑:程序博客网 时间:2024/04/29 15:35

char *strsep(char **stringp, const char *delim);

功能:分解字符串为一组字符串。从stringp指向的位置起向后扫描,遇到delim指向位置的字符后,将此字符替换为NULL,返回stringp指向的地址

 

long int strtol(const char *nptr, char **endptr, int base)
功能:strtol()会将nptr指向的字符串,根据参数base,按权转化为long int, 然后返回这个值。

原创粉丝点击