1 /* $Id: cqlstdio.c,v 1.3 2005-01-15 19:47:11 adam Exp $
2 Copyright (C) 1995-2005, Index Data ApS
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);