From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: struct...help? Date: Mon, 07 Sep 1998 19:22:16 -0300 Organization: NBTel Internet Lines: 31 Message-ID: <35F45C98.EDEE9E8@unb.ca> References: <3 DOT 0 DOT 5 DOT 16 DOT 19980906220313 DOT 0cf77836 AT mail DOT tir DOT com> NNTP-Posting-Host: fctnts05c61.nbnet.nb.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Thomas J. Hruska wrote: > I was looking at RHIDE and DJGPP doesn't seem to support the struct > keyword. Struct is an ANSI standard and is required pretty much for all > compilers to have the feature. DJGPP _fully_ supports struct. I don't know why you think it doesn't. > Second, I am having a problem with the following lines of code under > Borland Turbo C: > > struct extDate { > unsigned char Month; > unsigned char Day; > unsigned int Year; > long int Number; > } IssueDate; > > void FunctionName(void) > { > struct extDate TempDate; > > TempDate = {12, 23, 1993, 0}; Try this instead: TempDate = (extDate){12,23,1993,0}; -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca