Re: sys/queue.h



On Mon, 16 Jul 2007 20:29:00 -0000 ellis@xxxxxxx wrote:

| In article <1184600375.603213.254750@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
| westymatt <westymatt@xxxxxxxxx> wrote:
|
|>Out of curiousity what does it create? Unregulated array growth
|
| It creates a way to access data beyond what's defined in the struct.

Variable length structs, assuming the length information is in, or can be
derived from, what is in the fixed part of the struct, and the [0] member
is the last member.

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-07-16-1608@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • Re: Requesting sample code!
    ... a function can never be a member of a struct. ... Putting a pointer to function in a structure is no different. ... than a pointer to int or pointer to char or pointer to struct. ...
    (microsoft.public.vc.language)
  • Re: What do others make of this code?
    ... The intent of the 'm_' is to distinguish the variable as a member ... I also didn't like the "m_" prefix. ... C++ programming guidelines. ... It all depends IMHO on how the struct is used. ...
    (comp.lang.cpp)
  • Re: realloc() implicit free() ?
    ... >>> memory has no effective type, because it hasn't been stored into yet. ... Writing into one struct member causes the whole struct to be accessed ... >>> pointers to structs being the same as pointers to their first ...
    (comp.lang.c)
  • PP installation failed in Sun One Web Server
    ... member of struct or union. ... t #1 is not the correct type. ...
    (php.general)
  • Re: Uninitialized memory, malloc and unsigned char
    ... the structure or union object may be a trap representation. ... affect validity of the struct. ... undefined behavior even when the member of a struct being assigned ... the array it points to may be used instead of a buffer allocated by ...
    (comp.std.c)