Re: Calling a function with a custom datatype argument
"Martin (gzlist)" <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
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 ------------------------------------------------------------------------------ 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