[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> > Inconsistency between Allegro routines ? If these are the same as the
> > inconsistencies between libc functions, then I think this is OK.
>
> I disagree here. Unless someone can give me a good reason for the
> behaviour
> of strncpy() compared with that of strncat(), I'll keep viewing it as an
> inconsistency.
While I agree with you that this behavior is inconsistent, I'd rather keep
this inconsistency in Allegro's u* routines, and then add other entries for
more self consistent routines as you proposed.
> > #define ustrnconcat(s,size) ustrncat((s),(size)-ucwidth(0))
>
> I'm ok with ustrncat(): it follows ANSI standard's behaviour.
> ustrncpy() is the problem.
Sorry, then:
#define ustrncopy(s,size) ustrncpy((s),(size)-ucwidth(0))
--
Lyrian