cqlstdio.c

来自「harvest是一个下载html网页得机器人」· C语言 代码 · 共 37 行

C
37
字号
/* $Id: cqlstdio.c,v 1.1 2003/01/06 08:20:27 adam Exp $   Copyright (C) 2002-2003   Index Data ApsThis file is part of the YAZ toolkit.See the file LICENSE.*/#include <yaz/cql.h>int getbyte_stream(void *client_data){    FILE *f = (FILE*) client_data;    int c = fgetc(f);    if (c == EOF)        return 0;    return c;}void ungetbyte_stream (int c, void *client_data){    FILE *f = (FILE*) client_data;    if (c == 0)        c = EOF;    ungetc(c, f);}int cql_parser_stdio(CQL_parser cp, FILE *f){    return cql_parser_stream(cp, getbyte_stream, ungetbyte_stream, f);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?