Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there fmemopen() in MinGW

I'm trying to compile some code that uses the fmemopen function in MinGW. I found out that this function is not available MinGW. I need a function equivalent to fmemopen().

Are there any alternative functions that I can use?

like image 214
virus Avatar asked Sep 05 '11 12:09

virus


1 Answers

there are no fmemopen equivalents on win32 because of missing functionality in the kernel, I think cygwin implements it using a temp file like this one: https://github.com/kespindler/python-tesseract/blob/master/util-fmemopen.c

like image 138
sherpya Avatar answered Sep 23 '22 21:09

sherpya