|
Go to the documentation of this file. 29 #define BUFFER_LEN 8192 49 int nbytesread = gzread((gzFile)stream, ptr, ( unsigned int) (size * nmemb)); 50 assert(nbytesread >= 0); 52 return ( size_t) nbytesread; 54 return ( size_t) gzread((gzFile)stream, ptr, ( unsigned int) (size * nmemb)); 60 return ( size_t) gzwrite((gzFile)stream, ptr, ( unsigned int) (size * nmemb)); 70 #if defined(_WIN32) || defined(_WIN64) 71 n = _vsnprintf(buffer, BUFFER_LEN, format, ap); 77 buffer[BUFFER_LEN-1] = '\0'; 79 return gzputs((gzFile)stream, buffer); 84 return gzputc((gzFile)stream, c); 89 return gzputs((gzFile)stream, s); 94 return gzgetc((gzFile)stream); 101 return gzgets((gzFile)stream, s, size); 106 return gzflush((gzFile)stream, Z_SYNC_FLUSH); 111 return ( int) gzseek((gzFile)stream, offset, whence); 116 (void) gzrewind((gzFile)stream); 121 return gztell((gzFile)stream); 126 return gzeof((gzFile)stream); 131 return gzclose((gzFile)fp); 152 return fread(ptr, size, nmemb, (FILE*)stream); 157 return fwrite(ptr, size, nmemb, (FILE*)stream); 165 va_start(ap, format); 166 retval = vfprintf((FILE*)stream, format, ap); 174 return fputc(c, (FILE*)stream); 179 return fputs(s, (FILE*)stream); 184 return fgetc((FILE*)stream); 191 return fgets(s, size, (FILE*)stream); 196 return fflush((FILE*)stream); 201 return fseek((FILE*)stream, offset, whence); 206 rewind((FILE*)stream); 211 return ftell((FILE*)stream); 216 return feof((FILE*)stream); 221 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)
|