Searching a Name in C phone book

Discussion in 'C' started by coool, Aug 13, 2007.

  1. coool

    coool New Member

    Joined:
    Jul 12, 2007
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    0
    Hi

    I'm trying to search a first name and a last name in a c phone book

    /* *ppCur should point to the found entry or the successor if the entry is not found */
    /* compare lastname and firstname fields to the variables of the same name to find the*/
    /* appropriate entry */
    /* return 1 if found and 0 if not */
    int SearchName(NODE **ppCur, char *lastname, char *firstname)

    anyone can give me any clue ?
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    The free homework store is two doors down. This is the free help store. We help those who break a sweat in an attempt to do their own work. While you're here, have a read.
     

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