The Instructions are: Your program receives from user two strings of symbols: first long one and then short one. Then your program returns all positions in long string where short string occures as a substring.
For example: long string is "aabcccbabc" and short one is "abc". Short string can be seen twice in the long string "aabcccbabc" in positions 1 and 7 (enumeration of positions in string starts as always from 0). Position of the substring is the position of its first symbol in the whole string. You are not allowed to use any built-in functions, such as strlen().
I don't know how to make this program output a position itself, and I can't get it find the matches. Please help, I'm stuck.