From: Bharat Jain <bharat@veveotv.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: Sorted List
Date: Sat, 26 Nov 2005 17:36:43 +0530 [thread overview]
Message-ID: <43884FD3.8030008@veveotv.com> (raw)
After the while loop "sp" would be containing the address of the node
after
which the new node is to be inserted.
It is done in this way because *sp = *sp->next would modify the global
"empty" pointer which we dont want. "empty" should always point to
first element of the list.
Hope this helps.
next reply other threads:[~2005-11-26 12:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-26 12:06 Bharat Jain [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-26 2:28 Sorted List Nanakos Chrysostomos
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=43884FD3.8030008@veveotv.com \
--to=bharat@veveotv.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).