Akim Demaille wrote:
> | int main( int argc, char** argv ) {
> | return strchr( argv[0], ']' ) == NULL; }
> |
> | without doing a detailed scan for '[' and ']' chars.
> | Too hard.
>
> int main( int argc, char** argv ) {
> return strchr( argv[0], '@:>@' ) == NULL; }
Ick. Poo. And, you must mean:
> int main( int argc, char** argv ) {
> return strchr( argv@<:@0@:>@, '@:>@' ) == NULL; }
since:
> | without doing a detailed scan for '[' and ']' chars.
means just that. I actually need to globally replace
all four knarly characters: [ ] $ #
(now that I know about "Quadrigraphs" -- one step above
"trigraphs"!)
Methinks this amounts to another reason for generating
macros -- type in human readable: strchr( argv[0], ']' )
and feed M4 the: strchr( argv@<:@0@:>@, '@:>@' )
stuff.