string handling

Discussion in 'C' started by swaeded, May 10, 2007.

  1. swaeded

    swaeded New Member

    Joined:
    Apr 26, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I have a doubt i have searched for this question but i didnt get the answer..
    can u help me in solving this problem..
    In C is there any string function like -strstr(a,b).
    If it is there can u tell me working of it with an eg...

    thank you..
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,341
    Likes Received:
    379
    Trophy Points:
    83
    strstr Finds a substring.

    char *strstr( const char *string, const char *strCharSet );

    Required Header for strstr is string.h
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice