Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
commandersaki
8 days ago
|
parent
|
context
|
favorite
| on:
The fix wasn't easy, or C precedence bites
I know the precedence because I memorise the terse implementation of strcpy, but (also) write *src++ as *(src++) and even though it remains a bit of a mouthful the parenthesis ensures there is no doubt how to evaluate the expression.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: