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(_WIN32) || defined(_WIN64) 81 n = _vsnprintf(buffer,
BUFFER_LEN, format, ap);
87 buffer[BUFFER_LEN-1] =
'\0';
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);
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)