Go to the source code of this file.
Functions | |
FILE * | fmemopen (void *buf, size_t size, const char *mode) |
A BSD port of the fmemopen Linux method using funopen. More... | |
FILE* fmemopen | ( | void * | buf, |
size_t | size, | ||
const char * | mode | ||
) |
A BSD port of the fmemopen Linux method using funopen.
man docs for fmemopen: http://linux.die.net/man/3/fmemopen
man docs for funopen: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/funopen.3.html
This method is ported from ingenuitas' python-tesseract project.
You must call fclose on the returned file pointer or memory will be leaked.
buf | The data that will be used to back the FILE* methods. Must be at least size bytes. |
size | The size of the buf data. |
mode | The permitted stream operation modes. |
Definition at line 94 of file fmemopen.c.