[ctypes-users] FILE pointers and open file objects
by James Dominy other posts by this author
Nov 7 2006 12:55PM messages near this date
Re: [ctypes-users] Interfacing with ctypes
|
Re: [ctypes-users] FILE pointers and open file objects
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm trying to use ctypes to call a function in C that accepts a (FILE
*) type to an already open file. I have an open file object in python,
and have used ctypes to mirror the structure of the FILE object in
python, but I have NO idea where to get the appropriate values for
it's fields from within python.
I could call libstdc.fdopen() to populate the structure within C, and
pass the returned pointer, only this isn't portable AFAIK, as fdopen
is POSIX.
Is there a better way?
Thanks,
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFUPKht/WEwSnpaFYRAt60AKCf9d0M7ztTPh+PXHk7clwZszfqvACfXGFh
YN+IYRrLT94y2ci0R2wiALE=
=+W9K
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ctypes-users mailing list
ctypes-users@[...].net
https://lists.sourceforge.net/lists/listinfo/ctypes-users
Thread:
James Dominy
Lenard Lindstrom
Thomas Heller
Lawrence Oluyede
|