Quoth Moshe Zadka on Tue, Jul 25, 2000:
> On Mon, 24 Jul 2000, Ury Segal wrote:
> > char * sprintf( s, format, va_list);
Oh. Yet another ANSI incompatibility from Sun Microsystems? You
should probably forgive these guys. They were born before ANSI C
and before POSIX. Modern BSD systems return int, as expected.
> > C doesn't even have a standard, on a function many of us
> > used many times ( you know it is a security hazard, yes ?)
>
> Not if you're careful.
> And note, for example, that many portable programs come with their own
> sprintf-like functionality.
snprintf() and asprintf() from modern BSDs are a step in the
right direction. As are strlcpy() and strlcat(), because
strncpy() and strncat() are definitely not something you would
like to use in your programs.
> Yes, C is sorely lacking.
To put it simple, some parts of the C standard suck hard, and I
mean both language per se and the standard C library. But
overall, in my opinion, C is a nice language.
> You won't find a single soul here that will
> tell you it is not. So? Python is not perfect, Scheme is not perfect,
> Smalltalk is not perfect, C++ is downright horrible. Live with it.
But Perl has an elegant syntax!
<g,d&r>
Vadik.
--
I was part of that strange race of people aptly described as spending
their lives doing things they detest to make money they don't want to
buy things they don't need to impress people they dislike.
-- Emile Henry Gauvreay
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]