Archived

This topic is now archived and is closed to further replies.

HellRiZZer

Find string in a string true/false strcspn no good

Recommended Posts

strcspn() is for something else entirely

You need strstr(). It returns a pointer to wherever it found the substring in the main string, or NULL if it isn''t there.

Share this post


Link to post
Share on other sites