git-repack: repo.usedeltabaseoffset
[git/gitweb.git] / interpolate.h
blobd16f9244f3de25ec9e554c6d9f5bae07de7bf2a0
1 /*
2 * Copyright 2006 Jon Loeliger
3 */
5 #ifndef INTERPOLATE_H
6 #define INTERPOLATE_H
8 /*
9 * Convert a NUL-terminated string in buffer orig,
10 * performing substitutions on %-named sub-strings from
11 * the interpretation table.
14 struct interp {
15 char *name;
16 char *value;
19 extern int interpolate(char *result, int reslen,
20 const char *orig,
21 const struct interp *interps, int ninterps);
23 #endif /* INTERPOLATE_H */