[OT] C question (typedef & structs)
Bill Moran
wmoran at potentialtech.com
Thu Oct 2 09:37:03 PDT 2003
Chris Pressey wrote:
> On Thu, 02 Oct 2003 11:54:39 -0400
> Bill Moran <wmoran at potentialtech.com> wrote:
>
>
>>Hey gang,
>
>
> Hi Bill,
>
>
>>Actually, 2 questions:
>>
>>1) What's the difference between:
>>
>>struct customStruct {
>> int RecID;
>> char *Name;
>>};
>>
>>and
>>
>>typedef struct customStruct {
>> int RecID;
>> char *Name;
>>};
>
>
> The latter is incomplete. Try
>
> typedef struct customStruct {
> int RecID;
> char *Name;
> } MyCustomStruct;
>
> See also
>
> http://www.phim.unibe.ch/comp_doc/c_manual/C/SYNTAX/typedef.html
Thanks, Chris.
That reference is fantastic. It's exactly what I've been looking
for. I kept coming across over-simplified explanations of C when
I searched.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
More information about the freebsd-questions
mailing list