summaryrefslogtreecommitdiff
path: root/esd-config.h
blob: 377db8dae0afc399e7f83d96e76563d0d8ef7f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef ESD_CONFIG_H
#define ESD_CONFIG_H

#include <string.h>

/* these are some defines to use in when reading
 * esd.conf */

#define LINEBUF_SIZE 1024

/* use strtok_r if available */
#ifdef HAVE_STRTOK_R
#define DO_STRTOK(S,DELIM) strtok_r(S,DELIM,strtok_state)
char *strtok_state[LINEBUF_SIZE];
#else
#define DO_STRTOK(S,DELIM) strtok(S,DELIM)
#endif

#endif