Re: size_t (was Re: [AD] Unicode (3))

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I wonder if we should start using `size_t' where it makes sense.
> In this case, we could use `size_t' for the size parameters, and use
> `int' for the `n' parameters.  I think it helps readability, like
> `const' (even if "AL_CONST" is particularly ugly ;-)

It seems that ANSI C even uses 'size_t' for the 'n' parameter in the
strn*() functions, but in this case of course 'n' is a number of bytes too.
I agree to your proposition.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/