delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/31/02:15:40

From: Tom Jelen <jelen AT cis DOT ohio-state DOT edu>
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> <I3YxpJAEai00Ewq4 AT talula DOT demon DOT co DOT uk>
NNTP-Posting-Host: ts46-4.homenet.ohio-state.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019