Originally Posted by
jerry8989
1. It is creating an object with pointers to prevBlk, nextBlk, metaBlk and metaFld?
No, this:
Code:
struct dataBlk
*dataBlk = 0,
*rootBlk = 0;
is shorthand for:
Code:
struct dataBlk *dataBlk = 0;
struct dataBlk *rootBlk = 0;
Originally Posted by
jerry8989
2. What is the definition of *rootBlk? I checked the code and there is no definiton for it.
rootBlk is a pointer to a struct dataBlk object, i.e., *rootBlk is a struct dataBlk object.
Originally Posted by
jerry8989
3. Why is *dataBlka and *rootBlk set to 0?
To initialise them to be null pointers.