[M3devel] zero sized structs?

Jay jay.krell at cornell.edu
Thu Oct 4 20:15:47 CEST 2012


> But you can have zero-length arrays in C.

Not in ANSI C 1989.
Maybe C9X variable length ("open") arrays can be zero? But I bet maybe alloca(0) rounds up, like malloca(0).  C really avoids zero sized things..

 - Jay (briefly/pocket-sized-computer-aka-phone)

On Oct 4, 2012, at 10:22 AM, Antony Hosking <hosking at cs.purdue.edu> wrote:

> But you can have zero-length arrays in C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20121004/a98a9550/attachment-0002.html>


More information about the M3devel mailing list