1 /* $Id: cqlstdio.c,v 1.4 2005-06-25 15:46:03 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);
45 * indent-tabs-mode: nil
47 * vim: shiftwidth=4 tabstop=8 expandtab