401 strm = &(state->strm);
404 if (
sizeof(
int) !=
sizeof(
void *))
412 if (state->size == 0 &&
gz_init(state) == -1)
418 if (
gz_zero(state, state->skip) == -1)
427 size = (int)(state->size);
428 state->in[size - 1] = 0;
430 # ifdef HAS_sprintf_void 431 sprintf((
char *)(state->in), format, a1, a2, a3, a4, a5, a6, a7, a8,
432 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20);
433 for (len = 0; len < size; len++)
434 if (state->in[len] == 0)
break;
436 len = sprintf((
char *)(state->in), format, a1, a2, a3, a4, a5, a6, a7, a8,
437 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20);
440 # ifdef HAS_snprintf_void 441 snprintf((
char *)(state->in), size, format, a1, a2, a3, a4, a5, a6, a7, a8,
442 a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20);
443 len = strlen((
char *)(state->in));
445 len = snprintf((
char *)(state->in), size, format, a1, a2, a3, a4, a5, a6,
446 a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18,
452 if (len <= 0 || len >= (
int)size || state->in[size - 1] != 0)
Bytef * next_in
Definition: zlib.h:86
#define Z_NO_FLUSH
Definition: zlib.h:164
uInt avail_in
Definition: zlib.h:87
#define GZ_WRITE
Definition: gzguts.h:152
static int gz_init(gz_statep state)
Definition: gzwrite.c:15
#define Z_OK
Definition: zlib.h:173
gz_state FAR * gz_statep
Definition: gzguts.h:193
static int gz_zero(gz_statep state, z_off64_t len)
Definition: gzwrite.c:133
static int gz_comp(gz_statep state, int flush)
Definition: gzwrite.c:70