Double Linked list removal

Discussion in 'C' started by vvshah, Mar 28, 2007.

  1. vvshah

    vvshah New Member

    Joined:
    Mar 29, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Code:
    typedef struct a {
    
       char *val;              
       struct a *prev; 
       struct a *next; 
    } a_pt;
    
    a_pt* strt;   
    I need a function to remove an entry of type(a_pt *) from "strt".
    IMPORTANT: Make no assumptions regarding the allocation of a_pt or val.
     
    Last edited by a moderator: Mar 29, 2007
  2. vvshah

    vvshah New Member

    Joined:
    Mar 29, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I want it in C language.
     
  3. 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
    I need 40,000. I want it in USD. Make no assumptions about exchange rate.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
  5. wrecker

    wrecker New Member

    Joined:
    Mar 12, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You probably don't need to do that as well as its there right at the top of every page.
     

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