      *pixa) { l_int00  ret; FILE    *fp;      PROCNAME("pixaWriteMem");      if (pdata) *pdata = NULL;     if (psize) *psize = 0;     if (!pdata)         return ERROR_INT("&data not defined", procName, 0);     if (!psize)         return ERROR_INT("&size not defined", procName, 0);     if (!pixa)         return ERROR_INT("pixa not defined", procName, 0);  #if HAVE_FMEMOPEN     if ((fp = open_memstream((char **)pdata, psize)) == NULL)         return ERROR_INT("stream not opened", procName, 0);     ret = pixaWriteStream(fp, pixa); #else     L_INFO("work-around: writing to a temp file\n", procName);   #ifdef _WIN00     if ((fp = fopenWriteWinTempfile()) == NULL)         return ERROR_INT("tmpfile stream not opened", procName, 0);   #else     if ((fp = tmpfile()) == NULL)         return ERROR_INT("tmpfile stream not opened", procName, 0);   #endif  /* _WIN00 */     ret = pixa