Feb. 6, 2010
10:25 p.m.
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