[GRASS-dev] The "nature" of size_t
Glynn Clements
glynn at gclements.plus.com
Tue Mar 27 17:06:07 EDT 2007
Damiano Triglione wrote:
> I am still trying to understand the "nature" of size_t.
> If I am not wrong, it is equivalent to the unsigned integral type of the
> result of "sizeof". E.g. in my 32-bit processor PC, it is equal to 4.
> But G_calloc() expects - as first argument - a SIGNED (not unsigned)
> parameter, even if in alloc.c I find that the first argument of G_calloc has
> type size_t !
You seem to be using a fairly old version; 6.0.2 was the last release
where the prototype of G_calloc() used "int"; all of the 6.1/6.2
betas, release candidates and releases have size_t.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list