Re: reading a structure with pointer
- From: Mark L Pappin <mlp@xxxxxxx>
- Date: Sun, 07 Dec 2008 15:58:48 +1000
"Jujitsu Lizard" <jujitsu.lizard@xxxxxxxxx> writes:
"Ben Bacarisse" <ben.usenet@xxxxxxxxx> wrote:
romesh <romeshkulasekhara@xxxxxxxxx> writes:
I want to [...]
and that is where I am getting problems.
The code you posted has syntax errors. It is much better to post
real code.
You know, I agree with you.
Fine so far.
In fact, there should probably be a rule for this group
No there should not be.
that any code posted has to be a complete program that will compile
using "gcc filename.c".
Yet another missing of The Point, in several parts:
- If the OP complains that code runs but "doesn't work" (FSVO), then
posting code that has syntax errors is pointless, since we obviously
aren't being shown the code that "doesn't work" as originally
described.
- If the OP's problem is that attempting to compile gives error
messages but s/he doesn't understand them, then posting code with
errors is fine (as long as the actual text of the error messages is
also posted).
- The result of "gcc filename.c" is irrelevant here unless you get the
exact same result with (at least) "gcc -ansi -pedantic filename.c",
since by default gcc is not a C compiler.
mlp
.
- Follow-Ups:
- Re: reading a structure with pointer
- From: nick_keighley_nospam
- Re: reading a structure with pointer
- References:
- reading a structure with pointer
- From: romesh
- Re: reading a structure with pointer
- From: Ben Bacarisse
- Re: reading a structure with pointer
- From: Jujitsu Lizard
- reading a structure with pointer
- Prev by Date: Re: reading a structure with pointer
- Next by Date: Re: A question about void pointers
- Previous by thread: Re: reading a structure with pointer
- Next by thread: Re: reading a structure with pointer
- Index(es):
Relevant Pages
|