#include <string.h> 
#include <stdio.h> 
  
int main() 
{ 
    char s1[] = "Say hello , merhaba kim bu"; 
    char s2[] = "merhaba"; 
    char* p; 
  
    p = strstr(s1, s2); 
  
    if (p) 
    { 
        printf("String found: %s\n",p); 
    } 
    else
    {
        printf("String not found\n"); 
    }

    return 0; 
} 

1 Comment

sex bao dam · 30/08/2024 at 22:06

… [Trackback]

[…] Read More Info here to that Topic: durukanbal.com/2021/01/17/c-strstr-function-example/ […]

Leave a Reply

Avatar placeholder