1 /* $Id: cqlstring.c,v 1.1 2003-10-27 12:21:30 adam Exp $
2 Copyright (C) 2002-2003
5 This file is part of the YAZ toolkit.
7 See the file LICENSE for details.
18 struct cql_buf_info *bi = (struct cql_buf_info *) vp;
19 if (bi->str[bi->off] == 0)
21 return bi->str[bi->off++];
24 void ungetbuf(int b, void *vp)
26 struct cql_buf_info *bi = (struct cql_buf_info *) vp;
31 int cql_parser_string(CQL_parser cp, const char *str)
33 struct cql_buf_info b;
38 return cql_parser_stream(cp, getbuf, ungetbuf, &b);