Re: typedef struct



"Russell Shaw" <rjshawN_o@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:46lck2-305.ln1@xxxxxxxxxxxxxxxxxxxxxx
> Hi,
> In setjmp.h on a linux system, there is:
>
> typedef struct __jmp_buf_tag
> {
> ...
> } jmp_buf[1];
>
> I could understand typedef struct { } jmp_buf, but how do i
> interpret typedef struct { } jmp_buf[1] ?

The type of the name 'jmp_buf' is
"array of one struct __jmp_buf_tag".

I.e.

jmp_buf j;
/* is equivalent to: */
struct __jmp_buf_tag j[1];


-Mike


.