IDZEBRA  2.2.7
Data Structures | Functions
scantest.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <yaz/log.h>
#include <yaz/test.h>
#include <yaz/options.h>
#include <yaz/snprintf.h>
#include <idzebra/dict.h>

Go to the source code of this file.

Data Structures

struct  handle_info
 

Functions

static int handler (char *name, const char *info, int pos, void *client)
 
int do_scan (Dict dict, int before, int after, const char *sterm, char **cmp_strs, int verbose, int start_cut, int end_cut)
 
static void tst (Dict dict, int start, int number)
 
int main (int argc, char **argv)
 

Function Documentation

◆ do_scan()

int do_scan ( Dict  dict,
int  before,
int  after,
const char *  sterm,
char **  cmp_strs,
int  verbose,
int  start_cut,
int  end_cut 
)

◆ handler()

static int handler ( char *  name,
const char *  info,
int  pos,
void *  client 
)
static

Definition at line 40 of file scantest.c.

References handle_info::a, handle_info::ar, handle_info::b, handle_info::end_cut, and handle_info::start_cut.

Referenced by do_scan().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ tst()

static void tst ( Dict  dict,
int  start,
int  number 
)
static

Definition at line 152 of file scantest.c.

References dict, dict_insert(), and do_scan().

Referenced by main().