8

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?

sashoalm
  • 75,001
  • 122
  • 434
  • 781
virus
  • 146
  • 1
  • 9
  • Cannot you use pipes to implement this? Write to the pipe from one process and receive the written data in another process. You can store the data in the second process as per your requirements. – S B Apr 20 '13 at 06:59

1 Answers1

6

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

sherpya
  • 4,890
  • 2
  • 34
  • 50