strstr()

This is a discussion on strstr() within the C++ Programming forums, part of the General Programming Boards category; can sombody show me an example of how to use strstr() Thanks -Bob...

  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, 12: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, 07:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21