Finding all instances of a substring in a string
- by Mr Aleph
In my last question I asked about parsing the links out of an HTML page. Since I haven't found a solution yet I thought I tried something else in the meantime: search for every <a href= and copy whatever is there until I hit a </a>.
Now, my C is a bit rusty but I do remember i can use strstr() to get the first instance of that string, but how do I get the rest?
Any help is appreciated.
PS: No. This is not homework on school or something like that. Just so you know.