Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #10309 > unrolled thread
| Started by | jacob navia <jacob@spamsink.net> |
|---|---|
| First post | 2011-09-16 08:30 +0200 |
| Last post | 2011-09-22 06:59 -0700 |
| Articles | 7 on this page of 127 — 27 participants |
Back to article view | Back to comp.lang.c
Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-16 08:30 +0200
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-16 08:33 +0200
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-16 12:51 +0100
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-16 14:18 +0200
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-16 14:26 +0200
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-16 07:09 -0700
Re: Reversing a linked list ImpalerCore <jadill33@gmail.com> - 2011-09-16 08:28 -0700
Re: Reversing a linked list falk@rahul.net (Edward A. Falk) - 2011-09-16 16:34 +0000
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-16 09:28 -0700
Re: Reversing a linked list ImpalerCore <jadill33@gmail.com> - 2011-09-16 11:12 -0700
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 20:01 -0500
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-16 21:56 +0100
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 20:16 -0500
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-17 02:48 +0100
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 22:15 -0500
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-17 07:40 +0200
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-17 01:24 -0500
Re: Reversing a linked list cri@tiac.net (Richard Harter) - 2011-09-17 15:07 +0000
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-17 17:47 +0200
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-17 17:54 +0200
Re: Reversing a linked list Michael Press <rubrum@pacbell.net> - 2011-09-27 19:21 -0700
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-17 12:00 +0100
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-17 23:53 -0500
Re: Reversing a linked list ImpalerCore <jadill33@gmail.com> - 2011-09-16 07:21 -0700
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-16 16:47 +0200
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-16 08:20 -0700
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 20:25 -0500
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-16 22:32 +0100
Re: Reversing a linked list pete <pfiland@mindspring.com> - 2011-09-16 17:53 -0400
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 19:48 -0500
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-17 02:41 +0100
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 22:57 -0500
Re: Reversing a linked list "BartC" <bc@freeuk.com> - 2011-09-17 12:48 +0100
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-17 13:55 +0200
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-17 23:39 -0500
Re: Reversing a linked list HENRY Eshbaugh <henryeshbaugh@gmail.com> - 2011-09-16 16:56 -0700
Re: Reversing a linked list Ian Collins <ian-news@hotmail.com> - 2011-09-17 12:09 +1200
Re: Reversing a linked list HENRY Eshbaugh <henryeshbaugh@gmail.com> - 2011-09-16 19:53 -0700
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 23:00 -0500
Re: Reversing a linked list Jonathan Leffler <jleffler@earthlink.net> - 2011-09-16 23:20 -0700
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-17 13:46 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-17 19:51 -0700
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-18 01:28 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-18 15:39 -0700
Re: Reversing a linked list Kleuskes & Moos <kleuske@somewhere.else.net> - 2011-09-18 22:43 +0000
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-18 17:54 -0700
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-18 21:20 -0400
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-18 17:30 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-18 17:51 -0700
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-18 21:34 -0400
Re: Reversing a linked list Robert Wessel <robertwessel2@yahoo.com> - 2011-09-18 21:25 -0500
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-19 09:56 -0700
Re: Reversing a linked list gazelle@shell.xmission.com (Kenny McCormack) - 2011-09-19 17:16 +0000
Re: Reversing a linked list Willem <willem@toad.stack.nl> - 2011-09-19 17:25 +0000
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-19 23:40 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-20 17:55 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-20 17:48 -0700
Re: Reversing a linked list Geoff <geoff@invalid.invalid> - 2011-09-20 19:12 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-21 10:15 -0700
Re: Reversing a linked list David Resnick <lndresnick@gmail.com> - 2011-09-22 08:43 -0700
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-23 02:45 -0700
Re: Reversing a linked list David Resnick <lndresnick@gmail.com> - 2011-09-23 05:38 -0700
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-23 07:58 -0700
Re: Reversing a linked list David Resnick <lndresnick@gmail.com> - 2011-09-23 08:15 -0700
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-23 18:00 +0100
Re: Reversing a linked list David Resnick <lndresnick@gmail.com> - 2011-09-23 10:49 -0700
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-23 20:05 +0100
Re: Reversing a linked list pete <pfiland@mindspring.com> - 2011-09-23 18:05 -0400
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-24 00:19 +0100
Re: Reversing a linked list ImpalerCore <jadill33@gmail.com> - 2011-09-23 09:25 -0700
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-09-22 22:49 +0300
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-20 19:51 -0700
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-21 09:51 -0700
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-21 11:21 -0700
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-20 23:00 -0400
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-21 09:47 -0700
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-09-23 11:22 +0300
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-23 08:20 -0700
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-23 18:12 +0100
Re: Reversing a linked list Tim Rentsch <txr@alumni.caltech.edu> - 2012-01-24 13:13 -0800
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-09-23 23:49 +0300
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-24 08:15 -0400
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-09-24 20:15 +0300
Re: Reversing a linked list Tim Rentsch <txr@alumni.caltech.edu> - 2012-01-24 13:28 -0800
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2012-02-12 01:41 +0200
Re: Reversing a linked list Tim Rentsch <txr@alumni.caltech.edu> - 2012-03-08 09:08 -0800
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2012-03-13 17:21 +0200
Re: Reversing a linked list Tim Rentsch <txr@alumni.caltech.edu> - 2012-01-24 13:04 -0800
Re: Reversing a linked list Seebs <usenet-nospam@seebs.net> - 2011-09-23 01:46 +0000
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-18 21:17 -0400
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-17 23:50 -0500
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-18 01:29 -0700
Re: Reversing a linked list Seebs <usenet-nospam@seebs.net> - 2011-09-18 07:03 +0000
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-17 02:13 +0100
Re: Reversing a linked list HENRY Eshbaugh <henryeshbaugh@gmail.com> - 2011-09-16 19:52 -0700
Re: Reversing a linked list Willem <willem@toad.stack.nl> - 2011-09-17 08:58 +0000
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-18 15:32 -0700
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-18 21:36 -0400
Re: Reversing a linked list cri@tiac.net (Richard Harter) - 2011-09-19 05:24 +0000
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-19 08:21 -0400
Re: Reversing a linked list cri@tiac.net (Richard Harter) - 2011-09-19 14:28 +0000
Re: Reversing a linked list Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-09-19 17:01 +0100
Re: Reversing a linked list cri@tiac.net (Richard Harter) - 2011-09-19 16:25 +0000
Re: Reversing a linked list henry eshbaugh <henryeshbaugh@gmail.com> - 2011-09-21 10:41 -0700
Re: Reversing a linked list Kleuskes & Moos <kleuske@somewhere.else.net> - 2011-09-21 17:58 +0000
Re: Reversing a linked list James Kuyper <jameskuyper@verizon.net> - 2011-09-21 14:07 -0400
Re: Reversing a linked list Malcolm McLean <malcolm.mclean5@btinternet.com> - 2011-09-21 11:15 -0700
Re: Reversing a linked list Keith Thompson <kst-u@mib.org> - 2011-09-21 11:37 -0700
Re: Reversing a linked list Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-09-23 11:50 +0300
Re: Reversing a linked list Seebs <usenet-nospam@seebs.net> - 2011-09-23 01:46 +0000
Re: Reversing a linked list Geoff <geoff@invalid.invalid> - 2011-09-18 18:22 -0700
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-16 19:37 -0500
Re: Reversing a linked list jacob navia <jacob@spamsink.net> - 2011-09-17 07:52 +0200
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-17 02:09 -0500
Re: Reversing a linked list Ian Collins <ian-news@hotmail.com> - 2011-09-17 19:35 +1200
Re: Reversing a linked list "Tony" <nospamme@ever.net> - 2011-09-17 03:35 -0500
Programming languages jacob navia <jacob@spamsink.net> - 2011-09-17 22:14 +0200
Re: Programming languages "Tony" <nospamme@ever.net> - 2011-09-18 00:11 -0500
Re: Programming languages jacob navia <jacob@spamsink.net> - 2011-09-18 08:37 +0200
Re: Programming languages Seebs <usenet-nospam@seebs.net> - 2011-09-18 07:03 +0000
Re: Programming languages jacob navia <jacob@spamsink.net> - 2011-09-18 09:50 +0200
Re: Programming languages Keith Thompson <kst-u@mib.org> - 2011-09-18 01:31 -0700
Re: Programming languages James Kuyper <jameskuyper@verizon.net> - 2011-09-18 06:43 -0400
Re: Programming languages Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-09-18 07:42 -0700
Re: Programming languages "Tony" <nospamme@ever.net> - 2011-09-18 04:05 -0500
Re: Programming languages Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-09-18 07:40 -0700
Re: Reversing a linked list Gene <gene.ressler@gmail.com> - 2011-09-22 06:59 -0700
Page 7 of 7 — ← Prev page 1 2 3 4 5 6 [7]
| From | jacob navia <jacob@spamsink.net> |
|---|---|
| Date | 2011-09-18 09:50 +0200 |
| Subject | Re: Programming languages |
| Message-ID | <j547s9$3t6$1@speranza.aioe.org> |
| In reply to | #10427 |
Le 18/09/11 09:03, Seebs a écrit : > On 2011-09-18, Tony<nospamme@ever.net> wrote: >> BITCH, you tell what "I acknowlege" on more time, .. you don't want to >> war with me. > > I suspect you'll find that he does, for the following reasons: > 1. He's sometimes pretty ready to take up an offered fight. Maybe but I presented hard data to substaintiate my claims, and didn't resort to any insults. We are constantly being harassed by the "C is dead" crowd, and I think that enough is enough: the facts tell another story.
[toc] | [prev] | [next] | [standalone]
| From | Keith Thompson <kst-u@mib.org> |
|---|---|
| Date | 2011-09-18 01:31 -0700 |
| Subject | Re: Programming languages |
| Message-ID | <ln8vpm6yku.fsf@nuthaus.mib.org> |
| In reply to | #10427 |
Seebs <usenet-nospam@seebs.net> writes:
> On 2011-09-18, Tony <nospamme@ever.net> wrote:
>> BITCH, you tell what "I acknowlege" on more time, .. you don't want to
>> war with me.
>
> I suspect you'll find that he does, for the following reasons:
> 1. He's sometimes pretty ready to take up an offered fight.
> 2. He's not dumb enough to be scared of Internet tough guys.
>
> BTW: *plonk*
FYI, I just realized I had already plonked him some time ago,
but he's using a different fake e-mail address (he previously used
<tony@my.net>).
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
[toc] | [prev] | [next] | [standalone]
| From | James Kuyper <jameskuyper@verizon.net> |
|---|---|
| Date | 2011-09-18 06:43 -0400 |
| Subject | Re: Programming languages |
| Message-ID | <j54i15$ttd$1@dont-email.me> |
| In reply to | #10432 |
On 09/18/2011 04:31 AM, Keith Thompson wrote: > Seebs <usenet-nospam@seebs.net> writes: >> On 2011-09-18, Tony <nospamme@ever.net> wrote: >>> BITCH, you tell what "I acknowlege" on more time, .. you don't want to >>> war with me. >> >> I suspect you'll find that he does, for the following reasons: >> 1. He's sometimes pretty ready to take up an offered fight. >> 2. He's not dumb enough to be scared of Internet tough guys. >> >> BTW: *plonk* > > FYI, I just realized I had already plonked him some time ago, > but he's using a different fake e-mail address (he previously used > <tony@my.net>). It seems to me we've had several assaults recently, quite probably all from the same person, which all followed the same general pattern. They started with reasonable messages, not easily distinguishable from the general background of newbie questions. Then the poster starts obstinately standing by his own opinions in conflict with the information he's been given by many other people; regrettably, that's also not all that unusual a pattern in this newsgroup. Then, he suddenly degenerates into incoherent rage, ranting and raving about something that seems completely unrelated to the topics being discussed in the messages he's nominally responding to. One of the more unusual features is that these rants are much shorter than is usual for this newsgroup. I can understand ordinary trolling - it takes a lot less work and a lot less intelligence to "show" that you're "smarter" than other people by trying to fool them, than by actually demonstrating a superior understanding of a subject. This feels like something quite different to me. One could almost imagine that the rage being expressed during the terminal stages of one of these infestations is sincere. The last time this happened, several people suggested that the change in mood was due to drug abuse, which seems plausible. But does anyone have any clue as to what this guy thinks he's getting angry about when he's high? Insofar as there's any pattern to his ranges, he seems to think it's something political, and that's about as far as I can get in understanding it. It's probably not worth thinking about, but I just can't form a plausible mental model of the person who bothers perpetrating this nonsense. -- James Kuyper
[toc] | [prev] | [next] | [standalone]
| From | Nick Keighley <nick_keighley_nospam@hotmail.com> |
|---|---|
| Date | 2011-09-18 07:42 -0700 |
| Subject | Re: Programming languages |
| Message-ID | <3f681350-75fe-4625-b9af-be10122c5a45@h6g2000vbc.googlegroups.com> |
| In reply to | #10434 |
On Sep 18, 11:43 am, James Kuyper <jameskuy...@verizon.net> wrote: > On 09/18/2011 04:31 AM, Keith Thompson wrote: > > > Seebs <usenet-nos...@seebs.net> writes: > >> On 2011-09-18, Tony <nospa...@ever.net> wrote: > >>> BITCH, you tell what "I acknowlege" on more time, .. you don't want to > >>> war with me. > > >> I suspect you'll find that he does, for the following reasons: > >> 1. He's sometimes pretty ready to take up an offered fight. > >> 2. He's not dumb enough to be scared of Internet tough guys. > > >> BTW: *plonk* > > > FYI, I just realized I had already plonked him some time ago, > > but he's using a different fake e-mail address (he previously used > > <t...@my.net>). > > It seems to me we've had several assaults recently, quite probably all > from the same person, which all followed the same general pattern. They > started with reasonable messages, not easily distinguishable from the > general background of newbie questions. Then the poster starts > obstinately standing by his own opinions in conflict with the > information he's been given by many other people; regrettably, that's > also not all that unusual a pattern in this newsgroup. Then, he suddenly > degenerates into incoherent rage, ranting and raving about something > that seems completely unrelated to the topics being discussed in the > messages he's nominally responding to. One of the more unusual features > is that these rants are much shorter than is usual for this newsgroup. > > I can understand ordinary trolling - it takes a lot less work and a lot > less intelligence to "show" that you're "smarter" than other people by > trying to fool them, than by actually demonstrating a superior > understanding of a subject. This feels like something quite different to > me. One could almost imagine that the rage being expressed during the > terminal stages of one of these infestations is sincere. The last time > this happened, several people suggested that the change in mood was due > to drug abuse, which seems plausible. But does anyone have any clue as > to what this guy thinks he's getting angry about when he's high? Insofar > as there's any pattern to his ranges, he seems to think it's something > political, and that's about as far as I can get in understanding it. > It's probably not worth thinking about, but I just can't form a > plausible mental model of the person who bothers perpetrating this nonsense. I think he doesn'tlike being contradicted. How this works in the real world I can't imagine. Maybe he just bottles up his real world rage and spews it out on usenet.
[toc] | [prev] | [next] | [standalone]
| From | "Tony" <nospamme@ever.net> |
|---|---|
| Date | 2011-09-18 04:05 -0500 |
| Subject | Re: Programming languages |
| Message-ID | <nOsdq.11613$RC6.7469@newsfe10.iad> |
| In reply to | #10432 |
Keith Thompson wrote: > Seebs <usenet-nospam@seebs.net> writes: >> On 2011-09-18, Tony <nospamme@ever.net> wrote: >>> BITCH, you tell what "I acknowlege" on more time, .. you don't want >>> to war with me. >> >> I suspect you'll find that he does, for the following reasons: >> 1. He's sometimes pretty ready to take up an offered fight. >> 2. He's not dumb enough to be scared of Internet tough guys. >> >> BTW: *plonk* > > FYI, I just realized I had already plonked him some time ago, > but he's using a different fake e-mail address (he previously used > <tony@my.net> because I haven'y lived a day in you world?
[toc] | [prev] | [next] | [standalone]
| From | Nick Keighley <nick_keighley_nospam@hotmail.com> |
|---|---|
| Date | 2011-09-18 07:40 -0700 |
| Subject | Re: Programming languages |
| Message-ID | <5c024baa-79e3-4601-8479-53262abe68c2@hg2g2000vbb.googlegroups.com> |
| In reply to | #10424 |
On Sep 18, 6:11 am, "Tony" <nospa...@ever.net> wrote: > jacob navia wrote: > > Le 17/09/11 09:09, Tony a écrit : > >> What are the statistics? > >> How many new C programmers are there each year? > >> Is the total number of C programmers increasing or decreasing? > > > 1) Here you acknowledge > > BITCH, you tell what "I acknowlege" on more time, .. you don't want to > war with me. why what are you going to do? are you drunk?
[toc] | [prev] | [next] | [standalone]
| From | Gene <gene.ressler@gmail.com> |
|---|---|
| Date | 2011-09-22 06:59 -0700 |
| Message-ID | <a39c25eb-f8fe-4cf7-bd8b-d3dd247463fd@c29g2000yqd.googlegroups.com> |
| In reply to | #10309 |
On Sep 16, 2:30 am, jacob navia <ja...@spamsink.net> wrote:
> This group has lost many people. One of the reasons is that the
> newcomers just ask a question or two, and do not see discussions
> that try to explain code, teaching newcomers to the language how
> a program works.
>
> This is a second example (after hexdump.c) of commented code,
> i.e. explaining step by step how a relatively simple operation
> is done.
>
> Reversing a linked list
> -----------------------
> 13 if (l->count < 2)
> 14 return 1;
> 15 Next = l->First;
> 16 l->Last = l->First;
> 17 Previous = NULL;
> 18 while (Next) {
> 19 Current = Next;
> 20 Next = Next->Next;
> 21 Current->Next = Previous;
> 22 Previous = Current;
> 23 }
> 24 l->First = Previous;
> 25 l->Last->Next = NULL;
> 26 l->timestamp++;
> 27 return 1;
> 28 }
Since this is a tutorial, consider imparting something of value:
pseudocoding and rewrite.
/*
Algorithm:
Given List L
Set list R empty
while L is not empty
top = pop(L)
push(R, top)
end
return R
*/
int Reverse(List *lst)
{
// Error checking and update counting omitted...
ListElement *L = lst->First, *R = NULL;
while (L) {
// pop()
ListElement *top = L;
L = L->Next;
// push()
top->Next = R;
R = top;
}
lst->Last = lst->First;
lst->First = R;
return 1;
}
[toc] | [prev] | [standalone]
Page 7 of 7 — ← Prev page 1 2 3 4 5 6 [7]
Back to top | Article view | comp.lang.c
csiph-web