summaryrefslogtreecommitdiff
path: root/asm/quote.c
diff options
context:
space:
mode:
Diffstat (limited to 'asm/quote.c')
-rw-r--r--asm/quote.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/asm/quote.c b/asm/quote.c
index 75a93726..813141b3 100644
--- a/asm/quote.c
+++ b/asm/quote.c
@@ -217,6 +217,14 @@ static char *emit_utf8(char *q, int32_t v)
}
/*
+ * Quote a C string
+ */
+char *nasm_quote_cstr(const char *str)
+{
+ return nasm_quote(str, strlen(str));
+}
+
+/*
* Do an *in-place* dequoting of the specified string, returning the
* resulting length (which may be containing embedded nulls.)
*