Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!rutgers!mit-eddie!ll-xn!nike!lll-crg!lll-lcc!unisoft!dual!ptsfa!well!pozar From: pozar@well.UUCP (Tim Pozar) Newsgroups: net.lang.c Subject: Re: C structs & A question about octet Message-ID: <2005@well.UUCP> Date: Wed, 5-Nov-86 00:22:25 EST Article-I.D.: well.2005 Posted: Wed Nov 5 00:22:25 1986 Date-Received: Wed, 5-Nov-86 22:26:21 EST References: <2904@rsch.WISC.EDU> Reply-To: pozar@well.UUCP (Tim Pozar) Distribution: net Organization: Whole Earth Lectronic Link, Sausalito CA Lines: 17 Keywords: Alignment, structs, word sizes, puts(), \n Funny you were mentioning structure alignments. I was just writing a programme that plays with the PSP on a MS-DOS machine. I couldn't figure out why the name of the file was always cut off by two bytes. Oh! the structure is aligned on the int boundary. Geezsh. But there is a switch for the Micro- soft 4.0 C compiler (/Zp) that packs structure members. This is for all... Is there any spec that a puts() should a \n at the end of everything? My Microsoft 4.0 compiler does it, and I can't find any reference that describes puts() doing something like that in K&R. Is this a new standard? Tim Pozar ______________________________ | | | UUCP: ihp4!hplabs!well!pozar | | Fido: 125/406 Sysop | |______________________________|