Ignore this. The 2 byte packing boundary under CodeWarrior affected the packing of the array, and produced an extra null at the transition from the strings to the integers in my structure if the zero based byte array without padding has a maximum array element associated with an even number.
----- Original Message ----- From: "Del Ventruella" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[email protected]> Sent: Saturday, December 17, 2005 7:31 AM Subject: Spare Char > I have beed developing some routines to permit me to "pack" byte arrays with strings and integers on a desktop under VB 5.0. (The CDK versions of these functions don't seem to work under VB 5.0.) These are then transferred to and read into a structure in C++ on the emulator. I notice when I download the array generated under C by the handheld device, there is a null that appears to be inserted between the series of strings and the first of the series of integers in the record structure. Does C/C++ typically insert a null between a string and an integer in a byte array? This only happens at the transition from the strings to the integers in the record structure byte array. It is simple to deal with, but I can't seem to find any basis for this in my C/C++ code (such as string sizes in the structure). It is bothering me just a bit to have this behavior that I can't seem to justify. Thanks. > -- > For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
