[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 11 Jun 2001, Eric Botcazou <ebotcazou@xxxxxxxxxx> wrote:
> Ok, then we have to make a choice:
>
> 1. we keep the current behaviour of ustrncpy() (see my first message on the
> topic) which doesn't match that of ANSI strncpy(), but is consistent with
> that of ustrncat() which does match that of strncat() (my personal opinion:
> hence we can conclude that the ANSI standard is inconsistent),
I can't but agree with you (and Shawn) here (i.e. I think ustrncpy
should always NULL terminate).
I also think we should change `ustrncat' so we don't have to do the
silly size calculation (sizeof dest - ucwidth(0)). So here I agree
with Vincent, but I want the change to be in the function, rather
than in a macro.
Basically, my view is that we should ignore ANSI if it is obviously
broken. "Obviously" here is obviously not subjective.[1]
[1] or even more transparently: ``"Obviously" here is obviously not
objective.''
--
TOILET TOUP'EE, n. Any shag carpet that causes the lid to become
top-heavy, thus creating endless annoyance to male users.
-- Rich Hall, "Sniglets"