1/*
2* Copyright 2006 Jon Loeliger
3*/
45
#ifndef INTERPOLATE_H
6#define INTERPOLATE_H
78
/*
9* Convert a NUL-terminated string in buffer orig,
10* performing substitutions on %-named sub-strings from
11* the interpretation table.
12*/
1314
struct interp {
15char *name;
16char *value;
17};
1819
extern int interpolate(char *result, int reslen,
20const char *orig,
21const struct interp *interps, int ninterps);
2223
#endif /* INTERPOLATE_H */