Is there any function to search for string in string in C? -


is there function in c searches string in string , returns 0 or 1.

let's string 1 "i love whole world" , want search "love" there function appropriately returns 0 if not found , returns 1 if found.

strchr() searches character within given string.

however, want find love in i love whole world, you're searching string in another. take strstr() this.

while both functions don't return 0 or 1, trust able wrap them in way do.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -