Hello,
How do i pack different data types into a struct or an array. Examples
would be helpful.
Say i need to pack an unsigned char( 0xFF) and an long( 0x)
into a single array? The reason i need to do this is send a packet over
a network.
Thanks,
-AB
--
http://mail.python.org/mailman/l
Here's some changes to the code
main()
{
unsigned char buf1[512];
unsigned char buf2[512];
CODE code = TEST1
# The index number is passed from the command line
# It corresponds to one of the two buffers
# if index = 1 corresponds to buf1 and if index = 2 corresponds to
buf2