Re: typedef struct
- From: "Mike Wahler" <mkwahler@xxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 16:12:11 GMT
"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
.
- References:
- typedef struct
- From: Russell Shaw
- typedef struct
- Prev by Date: Re: How is strlen implemented?
- Next by Date: Re: a few doubts!
- Previous by thread: Re: typedef struct
- Index(es):