Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Koshkin
on May 11, 2016
|
parent
|
context
|
favorite
| on:
Zero size arrays in C
I guess the simplest example is struct header { size_t size; char data[0]; }, where 'data' simply labels the beginning of what follows the 'header'.
Gibbon1
on May 12, 2016
[–]
I do that all the time, packets come in, packets go out. They have headers and 'data'. A lot of code that deals with the header information does not need to know anything about the data part.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: