YAZ  5.23.1
Functions
cqlstdio.c File Reference

Implements query stream reading using FILE handle. More...

#include <yaz/cql.h>

Go to the source code of this file.

Functions

static int getbyte_stream (void *client_data)
 
static void ungetbyte_stream (int c, void *client_data)
 
int cql_parser_stdio (CQL_parser cp, FILE *f)
 parses CQL query (from FILE) More...
 

Detailed Description

Implements query stream reading using FILE handle.

Definition in file cqlstdio.c.

Function Documentation

int cql_parser_stdio ( CQL_parser  cp,
FILE *  f 
)

parses CQL query (from FILE)

Parameters
cpCQL parser
ffile where query is read from
Return values
0success
!=0failure

This function is similar to cql_parser_string but reads from stdio FILE handle instead.

Definition at line 34 of file cqlstdio.c.

References cql_parser_stream(), getbyte_stream(), and ungetbyte_stream().

static int getbyte_stream ( void *  client_data)
static

Definition at line 15 of file cqlstdio.c.

Referenced by cql_parser_stdio().

static void ungetbyte_stream ( int  c,
void *  client_data 
)
static

Definition at line 25 of file cqlstdio.c.

Referenced by cql_parser_stdio().