Hi folks...
So this is my Code:
Code:#include <stdio.h> #include <string.h> int main(void) { char *str1 = "Find a Word in this String", *str2 = "Word", *ptr; ptr = strstr(str1, str2); if(ptr) printf("String Found"); else printf("Not Found !"); }![]()
but this code did not fulfill my expectations...
So to my problem...
1. How can I search for a word in a string non-Case senstive... (using this code)
2. strstr also gives a ptr = 1 if I search for 'ord', is there any possibility to search for the exact phrase... 'word' only conisdering the non-Casetive function (again using this code)
Thanks in advance
Client![]()



LinkBack URL
About LinkBacks



