
pointers within a structure
Its probably a double linked list.
If you dont know what that is then in few words...
You keep a pointer to one record.. each record point to the one before it
and the one after it.. you can now add a new structure and simply append it
or insert it or whatever you fancy.. this way your list can grow from
nothing to all avail memory
Quote:
> What would the purpose be for including the 'next' and 'prior' pointers
> in a structure like this:
> struct media_spec {
> char spec_number[20];
> char revision;
> int eng_notice;
> char active;
> struct media_spec *next, *prior;
> };
> It's from an old DOS program that uses a binary file of these structures
> as a sort of database. I assume the pointers are required for some C
> library search function?
> drc