linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
To: Alphex Kaanoken <akaanoken@softminecorp.com>
Cc: Linux C Programming <linux-c-programming@vger.kernel.org>
Subject: Re: deletion in singly linked list
Date: Thu, 25 Nov 2004 15:56:31 +0530	[thread overview]
Message-ID: <1101378391.3795.59.camel@myLinux> (raw)
In-Reply-To: <20041125131142.652bdb95.akaanoken@softminecorp.com>

Thanks for the reply. Adding my comments below:

On Thu, 2004-11-25 at 15:41, Alphex Kaanoken wrote:
> if you need to remove member in any place you must do following things
>  - find member to remove
>  - take a pointer of prev member and change him to the next member that following after removeing member
>  - free memory that malloced for removing member
But I had explained previously, that this is a special case. I dont know
which is the head and which is the tail of a singly linkedlist. All I
know is that this is a node of the linked list and say the format of the
node. So from this I can get only the pointer to its next node. How can
I find its previous node? Is there a way to find it out?

Otherwise its simply linkedlist manipluation, and thatz not what I asked
for :-(

-- 
With regards,

Jagadeesh Bhaskar P
R&D Engineer
HCL Infosystems Ltd
Pondicherry
INDIA


  reply	other threads:[~2004-11-25 10:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-23  8:24 deletion in singly linked list Jagadeesh Bhaskar P
2004-11-23  8:42 ` Justinas
2004-11-23  8:55   ` mikael-aronsson
2004-11-23  9:09     ` Jagadeesh Bhaskar P
2004-11-23 16:57   ` Justinas
2004-11-23 10:08 ` Glynn Clements
2004-11-24 12:43 ` Alphex Kaanoken
2004-11-25  3:49   ` Jagadeesh Bhaskar P
2004-11-25 10:11     ` Alphex Kaanoken
2004-11-25 10:26       ` Jagadeesh Bhaskar P [this message]
2004-11-25 11:09         ` Alphex Kaanoken
  -- strict thread matches above, loose matches on Subject: below --
2004-11-23  9:00 Bakki Srinivas
2004-11-23  9:13 ` mikael-aronsson
2004-11-23  9:33   ` Jagadeesh Bhaskar P
2004-11-23  9:29 ` Jagadeesh Bhaskar P
2004-11-23  9:59 ` Glynn Clements
2004-11-23  9:35 Bakki Srinivas
2004-11-23  9:55 ` Jagadeesh Bhaskar P
2004-11-23 10:22 Bakki Srinivas
2004-11-23 10:23 Bakki Srinivas
2004-11-23 10:31 Bakki Srinivas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1101378391.3795.59.camel@myLinux \
    --to=jbhaskar@hclinsys.com \
    --cc=akaanoken@softminecorp.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).