Hacker News new | past | comments | ask | show | jobs | submit login

while ((dst++) = (src++));



Both of these replies are missing the asterisks to indicate pointer indirection. Probably HN is eating each asterisk, treating it as emphasis or something.

Also terse it may be, but this (assuming the missing asterisks are restored) is a good, idiomatic implementation of strcpy. Whether strcpy is good or evil is a separate discussion.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: