Article View: borland.public.cppbuilder.upgrade
Article #2357Using isspace in a .c program
From: Olaf Peters
Date: Fri, 04 Feb 2000 00:00
Date: Fri, 04 Feb 2000 00:00
8 lines
904 bytes
904 bytes
I'm upgrading a large program written in plain C under BC5 to BCB4. Now in ran into a problem using the isspace macro from ctype.h (and probably all is... macro's from ctype.h). 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! My work around is to #undef the macro. Any ideas? Olaf.
Technical Details
Message-ID:
<87e1tt$57p4@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10529a,b4a904e14092b2a6,start X-Google-Attributes: gid10529a,public From: "Olaf Peters" <olaf@technolution.nl> Subject: Using isspace in a .c program Date: 2000/02/04 Message-ID: <87e1tt$57p4@bornews.borland.com> X-Deja-AN: 581439974 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Technolution X-MSMail-Priority: Normal Newsgroups: borland.public.cppbuilder.upgrade