summaryrefslogtreecommitdiff
path: root/include/gsmd/strl.h
diff options
context:
space:
mode:
authorerin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-02-13 03:48:28 +0000
committererin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3>2008-02-13 03:48:28 +0000
commitbf667e7e9c45b0b0c3787c1023c3b0f6de284cd8 (patch)
tree24247ed5e688cce25b01144a04ceeb1f98dfdea4 /include/gsmd/strl.h
parentfb0265f553ca0efe8aac0f10de480bffeff1a33d (diff)
gsmd: add strlcpy, strlcat functions (Paulius Zaleckas)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4060 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include/gsmd/strl.h')
-rw-r--r--include/gsmd/strl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/gsmd/strl.h b/include/gsmd/strl.h
new file mode 100644
index 0000000..de96ab4
--- /dev/null
+++ b/include/gsmd/strl.h
@@ -0,0 +1,12 @@
+#ifndef __GSMD_STRL_H
+#define __GSMD_STRL_H
+
+#ifdef __GSMD__
+
+/* safe strcpy and strcat versions */
+extern size_t strlcpy(char *dest, const char *src, size_t size);
+extern size_t strlcat(char *dest, const char *src, size_t count);
+
+#endif /* __GSMD__ */
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary