delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/15/09:30:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: pointers to structs
Date: 15 Jul 2004 13:28:10 GMT
Lines: 17
Message-ID: <2lnf3aFem3d9U2@uni-berlin.de>
References: <20040715124626 DOT 86436 DOT qmail AT web60701 DOT mail DOT yahoo DOT com>
X-Trace: news.uni-berlin.de QndNcfRIg9/lwQlQPY9KqgdmvOhL09tln04QHx4gpKxD+PRYemWIVJUVNC
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

William OConnell <william_peter_oconnell AT yahoo DOT com> wrote:

> Use a dot instead of an arrow.  For example, the
> following code should work.

Pardon the French, but that's utter nonsense.  His version of the code
at least compiled, yours doesn't.  Now, if you had made the variable
'list' a struct instead of a pointer, you would have solved that part
of his problem, but not the real one, which is that the OP doesn't
understand about initializing pointers to point to something that
exists.

[And please refrain from top-posting and needless full-quoting.]

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019