[GRASS5] snprintf and other compile errors on IRIX

Eric G. Miller egm2 at jps.net
Tue Apr 23 11:22:59 EDT 2002


I'm probably the guilty party for most of those snprintf calls.  Sorry.
If I had to guess, I'd say better than 50% of the time, the call
probably is supliferous (where sprintf would really be fine) and
probably near 100% of the time the return value is not checked (so the
benefit is lost).  I'll try to go through the sources and replace all
occurrence tonight (-800).

It'd be nice to have a function that was a combination of sprintf and
strdup:  char * G_strdupf(const char *fmt, ...); ??
String handling in C is such a PITA...

-- 
Eric G. Miller <egm2 at jps.net>



More information about the grass-dev mailing list