Re: pointer to array of bytes

2004-02-03 Thread Chris Masters
Thanks Marcus and Sherm. Sherm this works fine. --- Marcus Holland-Moritz <[EMAIL PROTECTED]> wrote: > On 2004-02-03, at 13:00:50 -0500, Sherm Pendley > wrote: > > > On Feb 3, 2004, at 12:33 PM, Marcus Holland-Moritz > wrote: > > > > > On 2004-02-03, at 08:14:19 -0800, Chris Masters > wrote: >

Re: pointer to array of bytes

2004-02-03 Thread Marcus Holland-Moritz
On 2004-02-03, at 13:00:50 -0500, Sherm Pendley wrote: > On Feb 3, 2004, at 12:33 PM, Marcus Holland-Moritz wrote: > > > On 2004-02-03, at 08:14:19 -0800, Chris Masters wrote: > > > >> How do I use the pointer within perl? I need to loop > >> through each byte and print it's value (in hex or > >>

Re: pointer to array of bytes

2004-02-03 Thread Sherm Pendley
On Feb 3, 2004, at 12:33 PM, Marcus Holland-Moritz wrote: On 2004-02-03, at 08:14:19 -0800, Chris Masters wrote: How do I use the pointer within perl? I need to loop through each byte and print it's value (in hex or binary). No way. The pointer is useless inside a perl script. Pointers are perfec

Re: pointer to array of bytes

2004-02-03 Thread Marcus Holland-Moritz
On 2004-02-03, at 08:14:19 -0800, Chris Masters wrote: > Hi All, > > I have a C library that I am using that has a function > that returns an array of 12 bytes as a character > array. > > I have wrapped this like: > > void* > mywrap(stringin) > char *stringin > CODE: >

pointer to array of bytes

2004-02-03 Thread Chris Masters
Hi All, I have a C library that I am using that has a function that returns an array of 12 bytes as a character array. I have wrapped this like: void* mywrap(stringin) char *stringin CODE: RETVAL = myFunction(stringin); OUTPUT: RETV