I'd like to search for a short string in a long string
but find() can only give me the position of the first meet, whereas I want to take out all of their matching positions. How can i do this in C and or or C++ ?
Thank you

Eample: input: There is a skeleton in his cupboard and a small gun in his shirt's pocket
search for in, and return two matches