delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/06/25/04:45:12.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Martin Str|mberg <ams AT dexter DOT ludd DOT ltu DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: General Protection Fault error is intermittent
Date: Tue, 25 Jun 2013 08:37:31 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 26
Message-ID: <kqbksb$oeh$3@speranza.aioe.org>
References: <36e857f0-9899-496b-9fc6-32251e109888 AT googlegroups DOT com> <kpo3gh$4qo$1 AT speranza DOT aioe DOT org> <858cbded-7989-46e6-a997-93f842cdb3b0 AT googlegroups DOT com> <kq75ni$qvf$1 AT speranza DOT aioe DOT org> <020e0244-406c-4c1f-9dbc-d82a0fae976f AT googlegroups DOT com>
NNTP-Posting-Host: ftvAZcRvOze4hbePWaim7g.user.speranza.aioe.org
X-Complaints-To: abuse AT aioe DOT org
User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (SunOS/5.9 (sun4u))
X-Notice: Filtered by postfilter v. 0.8.2
Bytes: 1755
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

K.J.Williams <lordwilliams1972 AT gmail DOT com> wrote:
> BTW, I found another bug with DJGPP 

> if you have program that just uses :
>  
> #include<stdio.h>
> #include<string.h> 

> ...and you use a function from ctype.h - as I did with isspace(),
> without including ctype.h in your includes ... DJGPP/GCC will NOT
> complain about it 
> and will still compile it. I just discovered it and made the correction
> to add #include<ctype.h> to save myself from future headaches. 

Strange. My very old installation of DJGPP do complain.

> ...Secondly, I found this strange, but some how the ANSI C or C++
> standard doesn't consider the escape sequence '\b' (for backspace) as
> a white-space character when I use isspace() to check individual
> characters in a c-string. 

Why should it? That is a control character, AFAIK.


-- 
MartinS

- Raw text -


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