39#define BUFFER_LEN 8192
60 nbytesread = gzread((gzFile)stream, ptr, (
unsigned int) (size * nmemb));
65 return (
size_t) nbytesread;
70 return (
size_t) gzwrite((gzFile)stream, ptr, (
unsigned int) (size * nmemb));
80#if defined(_MSC_VER) && _MSC_VER < 1900
81 n = _vsnprintf(buffer,
BUFFER_LEN, format, ap);
89 return gzputs((gzFile)stream, buffer);
94 return gzputc((gzFile)stream, c);
99 return gzputs((gzFile)stream, s);
104 return gzgetc((gzFile)stream);
111 return gzgets((gzFile)stream, s, size);
116 return gzflush((gzFile)stream, Z_SYNC_FLUSH);
121 return (
int) gzseek((gzFile)stream, offset, whence);
126 (void) gzrewind((gzFile)stream);
131 return gztell((gzFile)stream);
136 return gzeof((gzFile)stream);
141 return gzclose((gzFile)fp);
148#define fdopen _fdopen
165 return fread(ptr, size, nmemb, (FILE*)stream);
170 return fwrite(ptr, size, nmemb, (FILE*)stream);
178 va_start(ap, format);
179 retval = vfprintf((FILE*)stream, format, ap);
187 return fputc(c, (FILE*)stream);
192 return fputs(s, (FILE*)stream);
197 return fgetc((FILE*)stream);
204 return fgets(s, size, (FILE*)stream);
209 return fflush((FILE*)stream);
214 return fseek((FILE*)stream, offset, whence);
219 rewind((FILE*)stream);
224 return ftell((FILE*)stream);
229 return feof((FILE*)stream);
234 return fclose((FILE*)fp);
SCIP_FILE * SCIPfopen(const char *path, const char *mode)
size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
int SCIPfgetc(SCIP_FILE *stream)
int SCIPfprintf(SCIP_FILE *stream, const char *format,...)
int SCIPfseek(SCIP_FILE *stream, long offset, int whence)
int SCIPfeof(SCIP_FILE *stream)
void SCIPrewind(SCIP_FILE *stream)
size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
long SCIPftell(SCIP_FILE *stream)
int SCIPfputc(int c, SCIP_FILE *stream)
int SCIPfclose(SCIP_FILE *fp)
char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
int SCIPfputs(const char *s, SCIP_FILE *stream)
SCIP_FILE * SCIPfdopen(int fildes, const char *mode)
int SCIPfflush(SCIP_FILE *stream)
wrapper functions to map file i/o to standard or zlib file i/o
struct SCIP_File SCIP_FILE