Thread: strstr()

  1. #1
    Yatta
    Guest

    strstr()

    can sombody show me an example of how to use strstr()

    Thanks
    -Bob

  2. #2
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    http://www.cplusplus.com/ref/cstring/strstr.html
    Click the link. Search on http://google.com next time. It helps.

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    63
    An less longer way:

    strstr(string1, string2);

    you could also look at how the function is set up in the string.h file.
    That is the easiest method of figuring out how functions work and to learn new ones.

    Hope this helps.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 07:53 AM
  2. Quick Ques on String Manipulation
    By ckuttruff in forum C Programming
    Replies: 8
    Last Post: 06-22-2008, 09:32 PM
  3. linked list using strstr
    By ilovec.. in forum C Programming
    Replies: 3
    Last Post: 11-04-2006, 01:30 PM
  4. strstr on a wchar array
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-28-2006, 06:42 AM
  5. Question about strstr()
    By choykawairicky in forum C++ Programming
    Replies: 2
    Last Post: 11-28-2004, 08:18 PM