binding an external C library with I/O methods

2014-06-30 Thread Pierre Lindenbaum
(cross posted on SO: http://stackoverflow.com/questions/24486926) I'd like to use an external library that is able to write files using a custom format. The API for this library looks like: MyFormatPtr format= myformat_openfd(int filedescriptor,const char* mode); MyFormatPtr format=

Re: binding an external C library with I/O methods

2014-06-30 Thread Nick Kew
On Mon, 30 Jun 2014 11:56:50 +0200 Pierre Lindenbaum pierre.lindenb...@univ-nantes.fr wrote: (cross posted on SO: http://stackoverflow.com/questions/24486926) I'd like to use an external library that is able to write files using a custom format. The API for this library looks like: