Hello,

I am trying to convert some C code into python.
Here's the C code...

typedef enum {
CODE1 = 0x1,
CODE2 = 0x2
} CODE
testit(unsigned char *buffer,
       unsigned long length,
       CODE code)
{
    unsigned long data
    switch (code)
    {
      case CODE1:
      while(len--)
      {
          *buffer++ = (unsigned long)data++
      }
      break
      case CODE2 :
     .....

}
How does python take care of pointers? Any help with python pointer
code appreciated.     
-Joe

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to