Zero Length Arrays Allowed in C Standard?
Richard H. Gumpertz
rhg at cpsolv.UUCP
Sat Dec 9 06:21:16 AEST 1989
Sender:
Reply-To: rhg at cpsolv.uucp (Richard H. Gumpertz)
Followup-To:
Distribution:
Organization: Computer Problem Solving, Leawood, Kansas
Keywords:
In article <UZTerlu00VcJEDulRd at andrew.cmu.edu> jm36+ at andrew.cmu.edu (John Gardiner Myers) writes:
>Note that it is provable that the char pointer (foo->baz + 1) points
>within the object returned by malloc.
Unfortunately, it is not provable that the char pointer(foo->baz + 1)
points within the sub-object baz. Hence, the behavior is undefined
(X3J11/88-158, 3.3.6, page 48, lines 24-27).
--
===============================================================================
| Richard H. Gumpertz rhg%cpsolv at uunet.uu.NET -or- ...uunet!amgraf!cpsolv!rhg |
| Computer Problem Solving, 8905 Mohawk Lane, Leawood, Kansas 66206-1749 |
===============================================================================
More information about the Comp.lang.c
mailing list