开发者

Extracting url from string in C

How can i extract urls from a string in C?

Say we have "bla bla bla bla bla blaaa http://www.stackoverflow.com blaaa bllaaa"

i want to pass that link to a开发者_开发百科 varible.

How can i do that?

Thanks.


  1. Search for "http://" using strstr function.
  2. Starting for this pointer stop on first null or space, if space set on this position null.
  3. Now you pointer resulted in step 1, pointing to your url.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜