Y
Hacker News
new
|
ask
|
show
|
jobs
by
heywhatupboys
993 days ago
> Technically this is not valid under strict C, but it's also incredibly common.
char data[] is valid C in recent versions if it is the last entry of a struct.
1 comments
layer8
993 days ago
To elaborate, this is called "flexible array member" and was introduced with C99.
link