Use cesanta GA code

PUBLISHED_FROM=197c9c874ea950aae8f3fd475d2a3ff836d0caab
This commit is contained in:
Sergey Lyubka authored and Marko Mikulicic committed 2016-04-13 19:19:27 +02:00
1 parent 8a62005a2d
commit 42f5a3e2f7
1 file changed
+4 -5
+4 -5
View File
@@ -1,11 +1,10 @@
--- ---
title: "mg_mk_str()" title: "MG_MK_STR()"
decl_name: "mg_mk_str" decl_name: "MG_MK_STR"
symbol_kind: "func" symbol_kind: "func"
signature: | signature: |
struct mg_str mg_mk_str(const char *s); #define MG_MK_STR(str_literal);
--- ---
A helper function for creating mg_str struct from plain C string. Macro for initializing mg_str.
`NULL` is allowed and becomes `{NULL, 0}`.