J
joe
Hello I would like to find the words that start with http on a string.
can anyone tell me how to do this. let say the string is "here is the
link http://www.somewhere.org and a few more words"
I would like to find the word that starts with http. In this case the
full URL. How can I do this?
I tried
char type[32], *dot;
while ((dot = strrchr (type, ' ')) != NULL) {
but that will put in dot only the last occurance after the space.
any suggestions? Thanks.
can anyone tell me how to do this. let say the string is "here is the
link http://www.somewhere.org and a few more words"
I would like to find the word that starts with http. In this case the
full URL. How can I do this?
I tried
char type[32], *dot;
while ((dot = strrchr (type, ' ')) != NULL) {
but that will put in dot only the last occurance after the space.
any suggestions? Thanks.