Ron Peterson (012ED25E) wrote:
> I ran into a typedef for a structure recently that looks like this:
>
> typedef struct {
> int len;
> char *buf;
> } foo[1];
>
> Anyway, I'm not familiar with the idea of using a one element array as
> the name of a typedef.


That's not what the above is doing. The name of the typedef is just
"foo". The type is "array of one element of struct {...}"
--
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.