Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SAI_Peregrinus
on March 22, 2025
|
parent
|
context
|
favorite
| on:
Don't Be Afraid of Types
Or C. It just turns into pointer math. Godbolt example here[1], just make sure the `int` is an offset within the bounds of the char* and it's well-defined.
[1]
https://godbolt.org/z/YWKK1P7zj
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1] https://godbolt.org/z/YWKK1P7zj