Kevin O'Connor wrote:
it's a little odd to have a C function sometimes return a dynamically allocated string and sometimes return a constant string.
Gerd, please don't do that. Sure, maybe nothing is ever free()d, but that's still very poor practice. Don't spread it.