2 ms·
Here's a classic: char *strcpy(char *d, char *s) { char *r = d; while (*d++ = *s++); return r; } (If you don't need the return value, th
by saagarjha 6y ago
Here's a classic:
char *strcpy(char *d, char *s) {
char *r = d;
while (*d++ = *s++);
return r;
}
(If you don't need the return value, this becomes even nicer.)