Re: Calling a function with a custom datatype argument

Rosalyn Hatcher <[email protected]>
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
Martin (gzlist) wrote:
> Correction, I was confusing the details.
>
> On 19/01/2010, Martin (gzlist) <[email protected]> wrote:
>   
>> There are a couple of ways to cheat though. Firstly, by just using the
>> function you can pass in any kind of pointer, so you can for instance
>> use printf from your c library as it has the same signature.
>>     
>
> Actually, printf can't be used, it needs to fiddle with the stack
> itself. The functions in your library have that step already done, so
> just treating va_list as a void pointer is probably fine.
>
> Martin
>   
Thank you very much.  That worked perfectly. ;-)

Rosalyn.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.