In <[EMAIL PROTECTED]>, ashokbellur wrote: > 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 > > 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?
Still incomplete. You don't map an index to a buffer in that code. What is getBuf() doing? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list