From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 09:01:52 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 0D63916A4B3 for ; Thu, 2 Oct 2003 09:01:52 -0700 (PDT) Received: from catseye.mine.nu (d154-5-84-203.bchsia.telus.net [154.5.84.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 4457543FB1 for ; Thu, 2 Oct 2003 09:01:51 -0700 (PDT) (envelope-from catseye@catseye.mine.nu) Received: (qmail 8544 invoked by uid 1001); 2 Oct 2003 16:04:22 -0000 Date: Thu, 2 Oct 2003 09:04:22 -0700 From: Chris Pressey To: Bill Moran Message-Id: <20031002090422.0c93da41.cpressey@catseye.mine.nu> In-Reply-To: <3F7C4A3F.8000508@potentialtech.com> References: <3F7C4A3F.8000508@potentialtech.com> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.6 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: [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 16:01:52 -0000 On Thu, 02 Oct 2003 11:54:39 -0400 Bill Moran 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 -Chris