C function strtok()
来源:互联网 发布:无限极 网络盒子 编辑:程序博客网 时间:2024/04/30 15:00
Syntax:
Description:
The strtok() function returns a pointer to the next "token" in str1, where str2 contains the delimiters that determine the token. strtok() returns NULL if no token is found. In order to convert a string to tokens, the first call to strtok() should have str1 point to the string to be tokenized. All calls after this should have str1 be NULL.
Example:
#include <string.h>char *strtok( char *str1, const char *str2 );
Description:
The strtok() function returns a pointer to the next "token" in str1, where str2 contains the delimiters that determine the token. strtok() returns NULL if no token is found. In order to convert a string to tokens, the first call to strtok() should have str1 point to the string to be tokenized. All calls after this should have str1 be NULL.
Example:
char str[] = "now # is the time for all # good men to come to the # aid of their country";char delims[] = "#";char *result = NULL;result = strtok( str, delims );while( result != NULL ) { printf( "result is /"%s/"/n", result ); result = strtok( NULL, delims );}OUTPUT: result is "now " result is " is the time for all " result is " good men to come to the " result is " aid of their country"
- C function strtok()
- strtok.c
- c strtok()
- C 字符串分隔 strtok
- C函数Strtok详解
- c中的strtok函数
- linux c strtok
- C strtok strtok_r
- c strtok函数用法
- c strtok函数用法
- C/C++ strtok函数
- C/C++ strtok函数
- C中的strtok
- strtok函数(C)
- C语言strtok函数
- c - strtok / strrchr
- c语言:strtok()函数
- C语言函数strtok
- 图表会说话
- 软件界面制作途径
- 如果在aspx页面上拖放Gridview应注意的地方!
- 蓝牙的一个小应用
- 页面树形控件dhtmlxTree、mztreeview及xtree比较
- C function strtok()
- 年终回顾:08年SOA市场 硝烟正浓
- Hibernate懒加载策略
- 软件园里的流氓(11)
- 自定义字段类型与FCKeditor结合
- 在maven 2工程中加入iTextAsian支持
- 软件园里的流氓(12)
- C#中的多态性
- 让Editplus自动格式化css和js