From: Tom Jelen Newsgroups: comp.os.msdos.djgpp Subject: Re: File reading Date: Sat, 31 Jan 1998 02:00:49 -0500 Organization: The Ohio State University Dept. of Computer and Info. Science Lines: 16 Message-ID: <34D2CC21.724C6E39@cis.ohio-state.edu> References: <34CC6531 DOT A6869055 AT mail DOT htk DOT fi> NNTP-Posting-Host: ts46-4.homenet.ohio-state.edu 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 Shawn Hargreaves wrote: >Char is 16bit long, right? > What gave you this idea? Using djgpp, as with most 32 bit compilers, a > char is 8 bits, a short is 16 bits, and an int or long is 32 bits. > Although it is perfectly legal according to the ANSI standard, compilers > with anything other than an 8 bit character type are very unusual... Just to throw in my two cents, compilers that handle unicode characters (like the Java compiler) have 16 bit characters. If unicode becomes the standard, more compilers might follow. Tom