delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/11/16:20:39

Date: Thu, 11 Feb 1999 16:20:33 -0500
Message-Id: <199902112120.QAA20563@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to: <199902112029.PAA12141@delorie.com> (message from Robert Hoehne
on Thu, 11 Feb 1999 21:29:47 +0100)
Subject: Re: ctype functions
References: <199902112029 DOT PAA12141 AT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com

> My question is now: Are the ctype functions buggy or
> my calls to them?

Your calls to them.  The ANSI spec very clearly states that the
programmer must pass integer (not char!)  values in the range 0..255
or the constant EOF to these functions.  Passing other values is
illegal and the results are undefined.

- Raw text -


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