Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Pathogen-David
on Oct 9, 2023
|
parent
|
context
|
favorite
| on:
My personal C coding style as of late 2023
> As a side note, I don't understand the #define for sizeof.
Their `size` type is signed. It's `ptrdiff_t`, not `size_t`.
beeforpork
on Oct 9, 2023
[–]
Ah, thanks! So code will look normal, but be subtly different. This is even worse than I thought!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Their `size` type is signed. It's `ptrdiff_t`, not `size_t`.