Subject: Re: printf formats again
To: None <current-users@NetBSD.ORG, firstname.lastname@example.org>
From: Olaf Seibert <email@example.com>
Date: 11/14/1996 14:31:22
"John F. Woods" <firstname.lastname@example.org> wrote:
> Perhaps, though, at least the popular typedef'd types could use the
> same kind of extension mechanism; %Ioff_t for off_t (however wide your
> compilation system make it), %Isize_t, and so on. (You can either
> limit it to the "_t" types, or explicitly terminate the name with ' or
> something, or use the ugly string-concatenation hack that's used to
> get around the lack of explicit termination for \x (i.e. "\xaa" "aa"
> to avoid generating the "character" \xaaaa).)
While I was reading what you wrote I had the same thought. Unfortunately
it won't work. By the time that printf() gets your string it has been
concatenated, and the termination has become unclear again.
> Thank goodness C++ solves this problem. Mostly.
The C++ method is ugly. I find printf() formats more readable,
in many occasions (but not always).
___ Olaf 'Rhialto' Seibert D787B44DFC896063 4CBB95A5BD1DAA96
\X/ Don't dream it, Be it email@example.com