Академический Документы
Профессиональный Документы
Культура Документы
Written by
Anoop Thykkandiyil
These structs are the foundation for all linked lists in the
library system
LINK
Generic. All structs put into
linked lists begin with this. i.e.
link is going to be the first
element of another struct that is
going to actually implement the
linked list.
LINKDATA
Simple subclass of link which as
also the ability to actually use a
data carrier. Used when it is not
necessary to create a separate
structure for this.
LISTBASE
I suspect this to be the starting
point of a linked list made using
the above link structure.
The function scans through the string str and searches for an
opening “[” and when it finds one it points to the string at
address next to “[” to the const char* cp. Next it searches
for the string “]” and when it finds one it converts the
entire string pointed to be cp into an integer and then
multiplies it to variable int mul which had been initialized
to a value “1”. Effectively I feel mul contains the integer
value represented by the string between brackets.
PARAMETERS
SDNA
It contains the
BHEAD
The main thing is the old* which is of type void in this but
in BHead4 and BHead8 are of type INT and int64_t types.
BHEAD4
BHEAD8