|
Go to the documentation of this file.
29 #define BUFFER_LEN 8192
49 int nbytesread = gzread((gzFile)stream, ptr, size * nmemb);
50 assert(nbytesread >= 0);
52 return ( size_t) nbytesread;
54 return ( size_t) gzread((gzFile)stream, ptr, size * nmemb);
60 return ( size_t) gzwrite((gzFile)stream, ptr, 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 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);
|