[GRASS-dev] etc file finder, take 2
William Kyngesburye
woklist at kyngchaos.com
Wed Apr 18 21:59:06 EDT 2007
That all works nicely. thanks.
For the const char * arg in G__find_etc() - should I also do that for
the public version of this, G_find_etc()?
On Apr 18, 2007, at 11:16 AM, Glynn Clements wrote:
> work for you. Also, make the argument "const char *" (you don't need
> to modify it) and use GPATH_MAX as the size of the path buffer (I've
> been replacing various random constants with that value as I find
> them; also for GNAME_MAX and GMAPSET_MAX)..
>
> E.g. (untested):
>
> static char *G__find_etc(const char *name)
> {
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Mon Dieu! but they are all alike. Cheating, murdering, lying,
fighting, and all for things that the beasts of the jungle would not
deign to possess - money to purchase the effeminate pleasures of
weaklings. And yet withal bound down by silly customs that make them
slaves to their unhappy lot while firm in the belief that they be the
lords of creation enjoying the only real pleasures of existence....
- the wisdom of Tarzan
More information about the grass-dev
mailing list