× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Mark,

thanks for your valuable input.


Am 19.01.2025 um 15:32 schrieb Mark Waterbury <mark.s.waterbury@xxxxxxxxxxxxx>:

I would stay away from using any C++ functions in ordinary C because C++ has a rather more complex and different runtime environment.

Ah, I wasn't aware.

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?

Not sure. See here: https://www.geeksforgeeks.org/isblank-in-cc/

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.:

Translation is not the goal, but recognizing a character as "blank"; see above.

So I'll probably just roll my own.

See https://github.com/PoC-dev/asterisk-translate-clid/blob/main/calltransd.c line 273++.

:wq! PoC



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.