file = gzdopen(fileno(stdout), "wb");
file = gzdopen(fileno(stdout), outmode);
int main(argc, argv)    int argc;    char *argv[];{    int uncompr = 0;    gzFile file;    prog = argv[0];    argc--, argv++;    if (argc > 0) {        uncompr = (strcmp(*argv, "-d") == 0);        if (uncompr) {            argc--, argv++;        }    }    if (argc == 0) {        SET_BINARY_MODE(stdin);        SET_BINARY_MODE(stdout);        if (uncompr) {            file = gzdopen(fileno(stdin), "rb");            if (file == NULL) error("can't gzdopen stdin");            gz_uncompress(file, stdout);        } else {            file = gzdopen(fileno(stdout), "wb"); /* "wb9" for max compr. */            if (file == NULL) error("can't gzdopen stdout");            gz_compress(stdin, file);        }    } else {        do {            if (uncompr) {                file_uncompress(*argv);            } else {                file_compress(*argv);            }        } while (argv++, --argc);    }    exit(0);    return 0; /* to avoid warning */}