[GRASS-dev] The "nature" of size_t

Damiano Triglione damiano.triglione at polimi.it
Tue Mar 27 05:42:41 EDT 2007


Hi,
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 !
Can anyone, please, help me tu figure out?
Thanks,
Damiano 




More information about the grass-dev mailing list