About 130,000 results
Open links in new tab
  1. strstr - cppreference.com

    Oct 5, 2024 · Pointer to the first character of the found substring in str, or a null pointer if such substring is not found. If substr points to an empty string, str is returned.

  2. C library - strstr () function

    The C library strstr () function returns a pointer to the first index of a specified substring in another string. The main goal of strstr () is to search for a substring within a larger string and it helps to find the first …

  3. strstr - C++ Users

    Return Value A pointer to the first occurrence in str1 of the entire sequence of characters specified in str2, or a null pointer if the sequence is not present in str1. Portability In C, this function is only …

  4. strstr () in C/C++ - GeeksforGeeks

    Jan 11, 2025 · In C/C++, std::strstr () is a predefined function used for string matching. <string.h> is the header file required for string functions. This function takes two strings s1 and s2 as arguments and …

  5. C string strstr () Function - W3Schools

    The strstr() function returns a pointer to the position of the first occurrence of a string in another string. The strstr() function is defined in the <string.h> header file.

  6. strstr, wcsstr, _mbsstr, _mbsstr_l | Microsoft Learn

    Dec 2, 2022 · The strstr function returns a pointer to the first occurrence of strSearch in str. The search doesn't include terminating null characters. wcsstr is the wide-character version of strstr and _mbsstr …

  7. C strstr Tutorial: String Searching with Practical Examples

    Apr 8, 2025 · Learn string searching in C with this comprehensive strstr tutorial. Explore usage, practical examples, and safer alternatives for string operations.

  8. C String Library Function strstr ( ) - Example And Explanation

    In this article, you will learn about C string library function strstr ( ) with step by step explanation and example. strstr( ) is the built in standard string manipulation function that is defined under string …

  9. C strstr Function - Tutorial Gateway

    The C strstr function returns a pointer to the first occurrence of a string in the given string. This article shows How to use the C strstr.

  10. C string.h strstr () Function - Syntax, Parameters, Examples

    The strstr () function in C locates the first occurrence of a substring within a larger string and returns a pointer to that position if found, or a null pointer if the substring is not present.