proposed time zone package changes (revised)

Edwin Groothuis edwin at mavetju.org
Sat Feb 6 22:25:51 UTC 2010


Jonathan Leffler <jonathan.leffler <at> gmail.com> writes:


> You could avoid the cast by using:    return strcpy(buf, "??? ??? ?? ??:??:??
????\n");This is one of the few occasions when the return value from strcpy()
actually is useful.  (So often, it would be more useful if it returned a pointer
to the NUL '\0' at the end of the string.)

I have a hard time finding a gcc option to enable these "returned value not
used" warnings which would need this cast... :-)

Edwin





More information about the tz mailing list