30 #define BUFFER_LEN 8192 51 nbytesread = gzread((gzFile)stream, ptr, (
unsigned int) (size * nmemb));
56 return (
size_t) nbytesread;
61 return (
size_t) gzwrite((gzFile)stream, ptr, (
unsigned int) (size * nmemb));
71 #if defined(_WIN32) || defined(_WIN64) 72 n = _vsnprintf(buffer,
BUFFER_LEN, format, ap);
78 buffer[BUFFER_LEN-1] =
'\0';
80 return gzputs((gzFile)stream, buffer);
85 return gzputc((gzFile)stream, c);
90 return gzputs((gzFile)stream, s);
95 return gzgetc((gzFile)stream);
102 return gzgets((gzFile)stream, s, size);
107 return gzflush((gzFile)stream, Z_SYNC_FLUSH);
112 return (
int) gzseek((gzFile)stream, offset, whence);
117 (void) gzrewind((gzFile)stream);
122 return gztell((gzFile)stream);
127 return gzeof((gzFile)stream);
132 return gzclose((gzFile)fp);
139 #define fdopen _fdopen 156 return fread(ptr, size, nmemb, (FILE*)stream);
161 return fwrite(ptr, size, nmemb, (FILE*)stream);
169 va_start(ap, format);
170 retval = vfprintf((FILE*)stream, format, ap);
178 return fputc(c, (FILE*)stream);
183 return fputs(s, (FILE*)stream);
188 return fgetc((FILE*)stream);
195 return fgets(s, size, (FILE*)stream);
200 return fflush((FILE*)stream);
205 return fseek((FILE*)stream, offset, whence);
210 rewind((FILE*)stream);
215 return ftell((FILE*)stream);
220 return feof((FILE*)stream);
225 return fclose((FILE*)fp);
size_t SCIPfread(void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
int SCIPfgetc(SCIP_FILE *stream)
int SCIPfputs(const char *s, SCIP_FILE *stream)
int SCIPfflush(SCIP_FILE *stream)
int SCIPfseek(SCIP_FILE *stream, long offset, int whence)
int SCIPfputc(int c, SCIP_FILE *stream)
size_t SCIPfwrite(const void *ptr, size_t size, size_t nmemb, SCIP_FILE *stream)
SCIP_FILE * SCIPfopen(const char *path, const char *mode)
int SCIPfprintf(SCIP_FILE *stream, const char *format,...)
int SCIPfeof(SCIP_FILE *stream)
struct SCIP_File SCIP_FILE
char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
wrapper functions to map file i/o to standard or zlib file i/o
SCIP_FILE * SCIPfdopen(int fildes, const char *mode)
void SCIPrewind(SCIP_FILE *stream)
int SCIPfclose(SCIP_FILE *fp)
long SCIPftell(SCIP_FILE *stream)