first characters in a string

This is a discussion on first characters in a string within the C Programming forums, part of the General Programming Boards category; can anyone tell me how i would detect if "http://" was the first part of a string?
eg "http://example.com" would ...