strchr

Discussion in 'C Programming' started by earthling, Nov 15, 2008.

  1. earthling

    earthling

    Joined:
    Nov 15, 2008
    Messages:
    5
    Hi Im having troubles with this function. Help would be greatly appreciated as im not very good with this stuff.

    Heres what I have to do: The function must find the first character in the chain pointed by glaPtr that is not in the chain pointed by alreadyseenPtr. It must return this character. If all characters in the first chain are in the second chain, the function must return '\0'.

    Ex1:
    alreadyseenPtr AG
    glaPtr AGS
    Function must return S

    Heres what I have so far and I dont think its doing its job good as my program isnt working:

    Last edited: Nov 15, 2008
    earthling, Nov 15, 2008
    #1
    1. Advertising

  2. earthling

    earthling

    Joined:
    Nov 15, 2008
    Messages:
    5
    help anyone please?
    Last edited: Nov 15, 2008
    earthling, Nov 15, 2008
    #2
    1. Advertising

  3. earthling

    earthling

    Joined:
    Nov 15, 2008
    Messages:
    5
    sry for bumping but im really really really desperate. Assigment is due tomorrow morning and still cant figure it out.
    earthling, Nov 16, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ataru@nospam.cyberspace.org

    C++ strings and strchr()

    ataru@nospam.cyberspace.org, Aug 21, 2003, in forum: C++
    Replies:
    32
    Views:
    7,042
    Default User
    Aug 22, 2003
  2. Martin Dickopp

    Re: Question about strchr() / strrchr()

    Martin Dickopp, Aug 16, 2003, in forum: C Programming
    Replies:
    4
    Views:
    2,230
    Irrwahn Grausewitz
    Aug 16, 2003
  3. Servé Lau

    a shorter strchr

    Servé Lau, Feb 17, 2004, in forum: C Programming
    Replies:
    9
    Views:
    656
  4. David Warner

    strchr & finding multiple occurances of a char

    David Warner, Apr 25, 2005, in forum: C Programming
    Replies:
    4
    Views:
    1,338
    CBFalconer
    Apr 26, 2005
  5. ts

    strchr declaration

    ts, Mar 14, 2007, in forum: C Programming
    Replies:
    2
    Views:
    390
    Florian Weingarten
    Mar 14, 2007
Loading...

Share This Page