Say, my program is about to receive a string "ABC", and I want to test if the string really contains "ABC". What is the best way to test it?
I am thinking of read all the characters from the incoming string one by one, but not sure which function is to use.
P.S. string source is not standard input.