[GRASS-dev] Some simple questions about coding style.
maris.gis at gmail.com
Mon Oct 15 21:06:04 CEST 2007
I was looking at g.copy source and now I have some simple questions:
1) Is it safe to pass int to G_calloc(), as it expects size_t?
2) Is it safe to G_malloc() fixed amount for parser's option
3) Why G_warning isn't a viod function? It always returns 0 and none
of GRASS modules performs check for it's return value.
Thanks for answers to GRASS C guru's.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4730 bytes
Desc: not available
Url : http://grass.itc.it/pipermail/grass-dev/attachments/20071015/5c29e030/manage-0001.bin
More information about the grass-dev