🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #2364

Re: Using isspace in a .c program

#2364
From: Olaf Peters
Date: Tue, 08 Feb 2000 00:00
37 lines
1665 bytes
Here is the line:

.C:
 while (isspace(*CmdString)) CmdString++;   // Skip spaces, doesn't work in
BCB4

.CPP
 while (isspace(*CmdString)) CmdString++;   // Skip spaces, works fine in
BCB4


My work around for now in the .C file:

#undef isspace
 while (isspace(*CmdString)) CmdString++;   // Skip spaces


Stefan Hoffmeister (TeamB) <Stefan.Hoffmeister@Econos.de> wrote in message
news:lrgm9s0qhhefkq34iakbedqvsm65lndbhd@4ax.com...
> : "Olaf Peters" <olaf@technolution.nl> wrote:
>
> >The isspace macro uses a table named 'chartype'
> >to check if a character is a space. However this macro fails when I use
it
> >from a .c file, but works fine when I use it from a .cpp file!
>
> Please post 15 lines of code (at most) that can be pasted into a C and a
> CPP to reproduce what you describe.
>
> --
> General information:
>   * Post to the right group - http://www.borland.com/newsgroups/
>     * Do not cross- or multipost
>       * Research at http://www.mers.com/searchsite.html
>
> Stefan Hoffmeister - http://www.econos.de/
> TeamB - http://www.teamb.com/
Technical Details
Message-ID: <87oh04$8tm10@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <87e1tt$57p4@bornews.borland.com> <lrgm9s0qhhefkq34iakbedqvsm65lndbhd@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10529a,b4a904e14092b2a6
X-Google-Attributes: gid10529a,public
From: "Olaf Peters" <olaf@technolution.nl>
Subject: Re: Using isspace in a .c program
Date: 2000/02/08
Message-ID: <87oh04$8tm10@bornews.borland.com>
X-Deja-AN: 583090582
References: <87e1tt$57p4@bornews.borland.com> <lrgm9s0qhhefkq34iakbedqvsm65lndbhd@4ax.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Technolution
X-MSMail-Priority: Normal
Newsgroups: borland.public.cppbuilder.upgrade