- while ((len = fread(page, 1, pagesize, stdin)))
- {
- len = zg_group(pageout, page, len);
- fwrite(pageout, 1, len, stdout);
- }
- free(page);
+ /* imprimo si quedó algo en el buffer */
+ if ((len = zg_group_finish(&zg, buff))) fwrite(buff, 1, len, stdout);