Sender: nate AT cartsys DOT com Message-ID: <375330BD.BEEE777@cartsys.com> Date: Mon, 31 May 1999 18:00:45 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: typedef'ing a 24-bit integer References: <37459ABF DOT FF51CA41 AT aaual DOT ualg DOT pt> <374C2C34 DOT F91FB02 AT aaual DOT ualg DOT pt> <374e4a23 DOT 1353984 AT noticias DOT iies DOT es> <37525F5A DOT 9CC35DF1 AT aaual DOT ualg DOT pt> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Miguel Guerreiro wrote: > Perhaps I didn't make myself clear, I only want it to take three bytes > when I save it to disk ( maybe packed ) not while I'm working with it... So just use `int', and write it like: putc(x); putc(x<<8); putc(x<<16); or something similar. -- Nate Eldredge nate AT cartsys DOT com