summaryrefslogtreecommitdiffstats
path: root/grammar/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/utils.c')
-rw-r--r--grammar/utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/grammar/utils.c b/grammar/utils.c
index 0812fa6b..f49af9b0 100644
--- a/grammar/utils.c
+++ b/grammar/utils.c
@@ -609,3 +609,12 @@ cnffuncNew(es_str_t *fname, struct cnffparamlst* paramlst)
}
return func;
}
+
+void
+cstrPrint(char *text, es_str_t *estr)
+{
+ char *str;
+ str = es_str2cstr(estr, NULL);
+ dbgprintf("%s%s", text, str);
+ free(str);
+}