使用strtok如何通过标记'\'拆分c字符串? [英] How a c string can be splitted by token '\' using strtok?

查看:81
本文介绍了使用strtok如何通过标记'\'拆分c字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用strtok如何通过标记''\''拆分c字符串?

示例:

Hello\world是一个c字符串。我需要把它分成Hello和world。如何实现?在此先感谢。

How a c string can be splitted by token ''\'' using strtok?
Example:
Hello\world is one c-string. I need to split it into Hello and world. How this can be implemented? Thanks in advance.

推荐答案

这个链接可能对你有帮助.....

STRTOK链接


问候

Dheeraj Joshi
Probably this link may help you.....

STRTOK Link

Regards
Dheeraj Joshi


我知道abt这个但它没有拆分它''\''strtok。即使我无法编译它。
I know abt this but it does not split it ''\'' strtok. Even i cannot compile it.


链接是为了您的参考而不是从该页面复制代码。


问候

Dheeraj Joshi
The link was given for your reference not to copy the code from the that page.

Regards
Dheeraj Joshi


这篇关于使用strtok如何通过标记'\'拆分c字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆