newbie help

ashokbellur at ashokbellur at
Wed Mar 23 23:30:44 CET 2005

Here's some changes to the code....

   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

   buf1 = getBuf(index1);
   buf2 = getBuf(index2);
   testme( buf1, 512, code);
   testme( buf2, 512, code);

   return 0x0;
I just want to know if there is an equivalent way of handling multiple
buffers and how i can map index to a buffer?


More information about the Python-list mailing list