linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Justinas <jugu3479@uosis.mif.vu.lt>
To: Justinas <jugu3479@uosis.mif.vu.lt>
Cc: Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>,
	Linux C Programming <linux-c-programming@vger.kernel.org>
Subject: Re: deletion in singly linked list
Date: Tue, 23 Nov 2004 18:57:55 +0200	[thread overview]
Message-ID: <20041123185755.194d428c@localhost.localdomain> (raw)
In-Reply-To: <20041123104246.772f55e3@localhost.localdomain>

sorry, my mistake, i wrote it in a hurry, before lectutes:).

i wanted to write like tris:
*n = *(n->next).

On Tue, 23 Nov 2004 10:42:46 +0200
Justinas <jugu3479@uosis.mif.vu.lt> wrote:

> Hello,
> 
> i think You can. For instance n is a pointer to curent node and n->next is pointer to next node. lets say we like this tmp = n, and n = n->next. After that free(tmp).
> 
> On Tue, 23 Nov 2004 13:54:10 +0530
> Jagadeesh Bhaskar P <jbhaskar@hclinsys.com> wrote:
> 
> > I am having the address of a single node of a singly linked list. All I
> > know about that node is that it is not the head of the list. Now say, I
> > want to delete this node. I can infer its next node, but not its
> > predicissor. Is there any way to delete that node, without breaking the
> > whole linked list down!!
> > 
> > -- 
> > Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
> > 
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  parent reply	other threads:[~2004-11-23 16:57 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 [this message]
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
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=20041123185755.194d428c@localhost.localdomain \
    --to=jugu3479@uosis.mif.vu.lt \
    --cc=jbhaskar@hclinsys.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).