Date: Thu, 02 Oct 2003 11:54:39 -0400 From: Bill Moran <wmoran@potentialtech.com> To: questions@freebsd.org Subject: [OT] C question (typedef & structs) Message-ID: <3F7C4A3F.8000508@potentialtech.com>
next in thread | raw e-mail | index | archive | help
Hey gang, Actually, 2 questions: 1) What's the difference between: struct customStruct { int RecID; char *Name; }; and typedef struct customStruct { int RecID; char *Name; }; ?? I had the latter, but when I started moving my code into different files to reorganize things, gcc started giving me warnings. The warnings went away when I moved to the former. I can't quite figure out what the difference is. Is one correct and the other not? 2) I'm a self-taught C programmer. That means that I know a lot, but I often bump into things that I should know (like question #1) that I don't. Does anyone have a suggestion for a mailing list that would be good for asking questions like the above? Keep in mind that I'm not an amature, I'm just not formally trained, so I bump into lots of areas that I'm not sure what I'm doing because I haven't studied it yet ;) -- 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?3F7C4A3F.8000508>