Re: typedef struct



Russell Shaw <rjshawN_o@xxxxxxxxxxxxxxxxxxxxx> writes:

> I could understand typedef struct { } jmp_buf, but how do i
> interpret typedef struct { } jmp_buf[1] ?

It declares a jmp_buf as an array of 1 element of the given
structure. The C standard says that jmp_buf is an array type, so
this declaration fulfills that requirement.
--
Bite me! said C.
.



Relevant Pages

  • Re: Any difference between these two?
    ... Chung Leong wrote: ... I mean, the first one declares ... an array named "line", but the 2nd one? ... Prev by Date: ...
    (comp.lang.php)
  • Re: "IS TABLE OF" help
    ... It declares a collection type. ... (array). ... Prev by Date: ...
    (comp.databases.oracle.server)
  • Copy a buffer to a bit field struct
    ... Is there any way to copy a BYTE array to a bit field structure? ... Prev by Date: ...
    (microsoft.public.vc.language)
  • Re: problem with macros
    ... array instead of x, y, z. ... some macros that could help me in reducing the triplification of code ... macros ...
    (comp.lang.c)
  • Re: [Newbie Question] Magic Numbers dangerous?
    ... An experienced Aerospace ... Person A inherits some code from somewhere, and sees an array which is ... size of the table is a prime number, so Person A declares a new constant: ... Person Z inherits the code long after Person A has passed ...
    (comp.lang.java.programmer)