3 ms·
Know what's even worse than strcpy? strlcpy. Every use of it I have seen was subtly incorrect. To use it correctly takes more code than anybody wants to writ
by ncmncm 5y ago
Know what's even worse than strcpy?
strlcpy.
Every use of it I have seen was subtly incorrect. To use it correctly takes more code than anybody wants to write, or (AFAICT) ever does.
strcat is worse than both, though.