Dear all,
According to the example of UnpackCustomer shown on the book of Palm
Programming,
the function prototype of UnpackCustomer is :
static void UnpackCustomer(Customer *customer, const PackedCustomer
*packedCustomer)
However the voidPtr to the locked record is passed as the second parameter.
Even so, packedCustomer->customerID and packedCustomer->name is still
valid. Is it because of the fact that every element in a structure is
written consecutively and in the order specified in the structure
declaration?
Thanks very much!
philip
P.S. Is the same technique of pack and unpack usually used in networking
programe?