Y
Hacker News
new
|
ask
|
show
|
jobs
by
saagarjha
2144 days 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.)