Article View: comp.sys.acorn.tech
Article #365Re: C query.
From: Geoff Riley
Date: Fri, 16 Oct 1992 21:05
Date: Fri, 16 Oct 1992 21:05
33 lines
1431 bytes
1431 bytes
In article <2qdtw7j025n@khantazi.welly.gen.nz> banks_p@kosmos.wcc.govt.nz writes:
> Okay here is a little wee problem I am hoping some C type can answer for
>me. Quickly please, before I take to this compiler with a blunt
>instrument... :)
Not too difficult to explain.
I shall give a different example:
typedef struct fred {
int an_int ;
struct fred * next ;
struct fred * prev ;
} fred ;
That is a declaration of two things: a struct called fred, which may be used
as:
struct fred a_fred_variable ;
and a new type called fred, which may be used as:
fred another_fred_variable ;
You would normally name the struct slightly differently in order to be able
to spot the difference easier.
Hope that helps.
I prefer assembler anyway ;-)
--
Cheerio,
|~~~ (uucp address: arcturus@spuddy.uucp)
|__|eoff (Fidonet address: 2:250/208)
* Meeeow ! Call Spuddy on (0203) 638780/638693 for FREE mail & Usenet access *
Technical Details
Message-ID:
<1992Oct16.210540.6947@spuddy.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!ames!sun-barr!cs.utexas.edu!swrinde!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet!axion!spuddy!arcturusReferences:
<2qdtw7j025n@khantazi.welly.gen.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!ames!sun-barr!cs.utexas.edu!swrinde!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!uknet!axion!spuddy!arcturus From: arcturus@spuddy.uucp (Geoff Riley) Newsgroups: comp.sys.acorn.tech Subject: Re: C query. Message-ID: <1992Oct16.210540.6947@spuddy.uucp> Date: 16 Oct 92 21:05:40 GMT References: <2qdtw7j025n@khantazi.welly.gen.nz> Organization: Spuddy's Public Usenet Domain Lines: 33