Why does strcpy(3)
(and strncpy(3)
) return their first argument? I don't see how this does add any value. Instead, frequently I'd rather have the number of copied bytes returned.
Addendum: What am I supposed to do when I need also the length of the resulting string? Do I really have to implement my own version?