From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 08:54:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEEF116A4B3 for ; Thu, 2 Oct 2003 08:54:42 -0700 (PDT) Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDC3343FB1 for ; Thu, 2 Oct 2003 08:54:39 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.179.151]) by mta11.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20031002155442.WBTK10023.mta11.adelphia.net@potentialtech.com> for ; Thu, 2 Oct 2003 11:54:42 -0400 Message-ID: <3F7C4A3F.8000508@potentialtech.com> Date: Thu, 02 Oct 2003 11:54:39 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [OT] C question (typedef & structs) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2003 15:54:42 -0000 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