YAZ  5.26.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.


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


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

◆ l_isspace

#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

◆ readconf()

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.

◆ readconf_line()

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().