ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/16/21:57:22

Date: Sat, 17 Jul 93 11:01:51 CST
From: michaels AT vsl DOT com DOT AU (Michael Snoswell)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: ctype.h problem

> > In the end I declared a variable of my own, char _ctype_[512]; 
> > and it compiled and linked fine.
> 
>      Your program won't work right, however.
> 
>      The "_ctype_" array is an array of flags, which describes the type
> of each character (i.e., uppercase, lowercase, control, etc.).  Not
> using the correct array will make your program malfunction.

I know that. I wasn't going to muck around recreating an array that should be
arounf somewhere anyway. I knew I wouldn't use any "indent" flags that worried
about upper or lower case and the compiled code runs fine for me, indicating
that the islower() call is never made.

Still, I'm yet to find out where _ctype_[] is and why the linker can't find it.

- Raw text -


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