strsep 函数
来源:互联网 发布:网络大电影如何申报 编辑:程序博客网 时间:2024/05/29 02:44
#include <string.h>
#include <stdlib.h>
int main()
{
char ptr[]={ "abcdefghijklmnopqrstuvwxyz "};
char *p,*str= "m ";
p=ptr;
printf( "%s\n ",strsep(&p,str));
printf( "%s\n ",p);
str= "s ";
printf( "%s\n ",strsep(&p,str));
printf( "%s\n ",p);
}
[root@shwhg test]# gcc test_strsep.c
[root@shwhg test]# ./a.out
abcdefghijkl
nopqrstuvwxyz
nopqr
#include <stdlib.h>
int main()
{
char ptr[]={ "abcdefghijklmnopqrstuvwxyz "};
char *p,*str= "m ";
p=ptr;
printf( "%s\n ",strsep(&p,str));
printf( "%s\n ",p);
str= "s ";
printf( "%s\n ",strsep(&p,str));
printf( "%s\n ",p);
}
[root@shwhg test]# gcc test_strsep.c
[root@shwhg test]# ./a.out
abcdefghijkl
nopqrstuvwxyz
nopqr
tuvwxyz
http://antyoung.blog.51cto.com/2471749/655593
- strsep 函数
- strsep 函数
- strsep函数
- strsep() 函数
- strsep函数用法
- strsep函数用法
- 字符串分割函数strsep
- 字符串分割 strsep 函数
- Linux中 strsep 函数 详解
- strsep 函数 c 语言 实现
- strtok和strsep函数详解
- strtok和strsep函数详解
- strtok 与 strsep 函数说明
- strtok和strsep函数详解
- strtok和strsep函数详解
- strtok 与 strsep 函数说明
- strtok和strsep函数详解
- strtok和strsep函数详解
- Linux 内核配置系统浅析
- 计算机经典书籍汇总
- Extjs 给任何的容器组件增加 getValues方法
- C++中typename关键字的使用方法和注意事项
- GoF设计模式学习笔记 第一回 Mediator
- strsep 函数
- KMP算法,字符串匹配过程
- iOS loadView,viewDidLoad,viewDidUnload用法
- 存储过程
- 非沈阳户口 沈阳 买房 问题解答
- PDB Files: What Every Developer Must Know
- 蒂姆-库克于2010年5月14日在奥本大学毕业典礼上发表的演讲全文
- 6.16开发者日:UC梁捷谈Web App的未来
- iptables 修改