1 /* $Id: cqlstdio.c,v 1.2 2004-10-03 22:34:07 adam Exp $
2 Copyright (C) 2002-2004
5 This file is part of the YAZ toolkit.
7 See the file LICENSE for details.
12 * \brief Implements query stream reading using FILE handle.
17 int getbyte_stream(void *client_data)
19 FILE *f = (FILE*) client_data;
27 void ungetbyte_stream (int c, void *client_data)
29 FILE *f = (FILE*) client_data;
36 int cql_parser_stdio(CQL_parser cp, FILE *f)
38 return cql_parser_stream(cp, getbyte_stream, ungetbyte_stream, f);