About 5,050,000 results
Open links in new tab
  1. Strings in C (strstr function) - Stack Overflow

    Aug 19, 2021 · I'm trying to reproduce the behavior of the strstr() function, which tries to find a substring in a string and for that I created the following function and compared it to the original. …

  2. strstr() function like, that ignores upper or lower case

    Dec 5, 2014 · DESCRIPTION The strstr() function finds the first occurrence of the substring needle in the string haystack. The terminating '\0' characters are not compared. The …

  3. c++ - How to find substring from string? - Stack Overflow

    A better approach is to test if /abc is a substring, and then see if the character after this substring (indexed using the pointer returned by strstr()) is either a / or a '\0':

  4. c - Get index of substring - Stack Overflow

    Sep 21, 2011 · With strstr I can get the poiner, but not the position, and without position I don't know the length of the substring. How can I get the index of the substring in pure C?

  5. c - How to return value using strstr function? - Stack Overflow

    Mar 19, 2014 · The question is to input two strings: S1 and S2. The objective is to find whether there exist a substring, and I know strstr can be used. If there exists a substring, print the …

  6. Performance comparison: strstr () vs std::string::find ()

    Aug 3, 2012 · Can someone please explain why I should use strstr or string find() ? Which one is faster, at where ?

  7. c++ - Is there a reverse function for strstr - Stack Overflow

    Oct 28, 2009 · I am trying to find a similar function to strstr that searches a substring starting from the end towards the beginning of the string.

  8. c - Recreate the strstr () function - Stack Overflow

    Mar 6, 2018 · The functionality is described as: strstr() function locates the first occurrence in the string pointed to by s1 of the sequence of characters (excluding the terminating null character) …

  9. strstr () for a string that is NOT null-terminated - Stack Overflow

    Dec 21, 2011 · How do I do the in-place equivalent of strstr() for a counted string (i.e. not null-terminated) in C?

  10. Fastest way to do a case-insensitive substring search in C/C++?

    May 23, 2016 · I need to do a fast case-insensitive substring search in C/C++. My requirements are as follows: Should behave like strstr () (i.e. return a pointer to the match point). Must be …