Date: Thu, 02 Oct 2003 12:37:01 -0400 From: Bill Moran <wmoran@potentialtech.com> To: Chris Pressey <cpressey@catseye.mine.nu> Cc: questions@freebsd.org Subject: Re: [OT] C question (typedef & structs) Message-ID: <3F7C542D.8070206@potentialtech.com> In-Reply-To: <20031002090422.0c93da41.cpressey@catseye.mine.nu> References: <3F7C4A3F.8000508@potentialtech.com> <20031002090422.0c93da41.cpressey@catseye.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
Chris Pressey wrote: > On Thu, 02 Oct 2003 11:54:39 -0400 > Bill Moran <wmoran@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F7C542D.8070206>