aboutsummaryrefslogtreecommitdiff
path: root/src/base/string/raw/nappend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/string/raw/nappend.c')
-rw-r--r--src/base/string/raw/nappend.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/base/string/raw/nappend.c b/src/base/string/raw/nappend.c
new file mode 100644
index 0000000..dcd0e5e
--- /dev/null
+++ b/src/base/string/raw/nappend.c
@@ -0,0 +1,9 @@
+#include <u.h>
+#include <base.h>
+
+char *
+str·nappend(char *dst, intptr len, char *src)
+{
+ str·ncopy(dst+str·len(dst), len, src);
+ return dst;
+}