文件名称:strtok
-
所属分类:
- 标签属性:
- 上传时间:2013-05-06
-
文件大小:4.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
strtok(char s[], const char *delim) 用来将字符串分割成一个个片段。参数s指向欲分割的字符串,参数delim则为分割字符串中包含的所有字符。当strtok()在参数s的字符串中发现参数delim中包涵的分割字符时,则会将该字符改为\0 字符。在第一次调用时,strtok()必需给予参数s字符串,往后的调用则将参数s设置成NULL。每次调用成功则返回指向被分割出片段的指针。-strtok- break down a string into tokens (ANSI)
A sequence of calls to this routine breaks the string <string> into a
sequence of tokens, each of which is delimited by a character from the
string <separator>. The first call in the sequence has <string> as its
first argument, and is followed by calls with a null pointer as their
first argument. The separator string may be different from call to call.
The first call in the sequence searches <string> for the first character
that is not contained in the current separator string. If the character
is not found, there are no tokens in <string> and strtok() returns a
null pointer. If the character is found, it is the start of the first
token.
strtok() then searches from there for a character that is contained in the
current separator string. If the character is not found, the current
token expands to the end of the string pointed to by <string>, and
subsequent searches for a token wil
A sequence of calls to this routine breaks the string <string> into a
sequence of tokens, each of which is delimited by a character from the
string <separator>. The first call in the sequence has <string> as its
first argument, and is followed by calls with a null pointer as their
first argument. The separator string may be different from call to call.
The first call in the sequence searches <string> for the first character
that is not contained in the current separator string. If the character
is not found, there are no tokens in <string> and strtok() returns a
null pointer. If the character is found, it is the start of the first
token.
strtok() then searches from there for a character that is contained in the
current separator string. If the character is not found, the current
token expands to the end of the string pointed to by <string>, and
subsequent searches for a token wil
(系统自动生成,下载前可以参看下载内容)
下载文件列表
string.h
strpbrk.c
strspn.c
strtok.c
strtok_r.c
strpbrk.c
strspn.c
strtok.c
strtok_r.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.