YAZ  5.23.1
Macros | Functions
readconf.c File Reference

Implements config file reading. More...

#include <stdio.h>
#include <yaz/log.h>
#include <yaz/readconf.h>

Go to the source code of this file.

Macros

#define l_isspace(c)   ((c) == '\t' || (c) == ' ' || (c) == '\n' || (c) == '\r')
 

Functions

int readconf_line (FILE *f, int *lineno, char *line, int len, char *argv[], int num)
 
int readconf (char *name, void *rprivate, int(*fun)(char *name, void *rprivate, int argc, char *argv[]))
 

Detailed Description

Implements config file reading.

Definition in file readconf.c.

Macro Definition Documentation

#define l_isspace (   c)    ((c) == '\t' || (c) == ' ' || (c) == '\n' || (c) == '\r')

Definition at line 20 of file readconf.c.

Referenced by readconf_line().

Function Documentation

int readconf ( char *  name,
void *  rprivate,
int(*)(char *name, void *rprivate, int argc, char *argv[])  fun 
)

Definition at line 59 of file readconf.c.

References readconf_line(), yaz_log(), YLOG_ERRNO, and YLOG_WARN.

int readconf_line ( FILE *  f,
int *  lineno,
char *  line,
int  len,
char *  argv[],
int  num 
)

Definition at line 22 of file readconf.c.

References l_isspace.

Referenced by readconf().