summaryrefslogtreecommitdiff
path: root/src/libstddjb/string_quote_nodelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/string_quote_nodelim.c')
-rw-r--r--src/libstddjb/string_quote_nodelim.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstddjb/string_quote_nodelim.c b/src/libstddjb/string_quote_nodelim.c
new file mode 100644
index 0000000..dfe41ce
--- /dev/null
+++ b/src/libstddjb/string_quote_nodelim.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/stralloc.h>
+#include <skalibs/skamisc.h>
+
+int string_quote_nodelim (stralloc *sa, char const *s, unsigned int len)
+{
+ return string_quote_nodelim_mustquote(sa, s, len, "\"", 1) ;
+}