+ 1

How to search for a specific keyword in a string in C?

Which is the best method for searching a keyword in a given string in C? For example searching "abc" in aabbabc...

18th Feb 2020, 3:13 PM
Sumanth Hegde
Sumanth Hegde - avatar
1 Réponse
+ 3
You can use `find` method of the string class if you are using C++ string. https://en.cppreference.com/w/cpp/string/basic_string/find
18th Feb 2020, 3:58 PM
Ipang