Quote:
> I'm writing a python wrapper around a C library that reads from a FILE *
> stream. I'd like to be able to pass in strings from Python as the data to
> be read, and in C, convert the strings to a FILE *.
> According to the Gnu libc info pages, the appropriate function is
> fmemcopy() defined in stdio.h -- however this seems to be missing from
> mine (stock RedHat 6.2).
> How else might I accomplish PyString --> FILE * conversion?
Write it out to a file in /tmp? That's probably the only vaguely
portable way.
HTH,
M.
--
please realize that the Common Lisp community is more than 40
years old. collectively, the community has already been where
every clueless newbie will be going for the next three years.
so relax, please. -- Erik Naggum, comp.lang.lisp