|
I would stay away from using any C++ functions in ordinary C because C++ has a rather more complex and different runtime environment.
So, when you say "isblank" you mean "whitespace" as far as the compiler is concerned when tokenizing the input -- in other words, the characters to be treated as "white space" (or blanks or spaces), yes?
This is fairly easy to do.
A simple "translate table" type of char array, e.g.:
char whitespace[255];
Initialize by: for (i=0; i < 255; i++) whitespace[i] = i;
Then carefully set each position you want translated to a "space" to x'40', for example, assuming #defines are set up for CR, LF, TAB, etc.:
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.