summaryrefslogtreecommitdiff
path: root/src/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/string.h')
-rw-r--r--src/include/string.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/string.h b/src/include/string.h
index 04c3733f8b..21689473ce 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -68,6 +68,12 @@ static inline char *strncpy(char *to, const char *from, int count)
return ret;
}
+static inline void strcpy(char *dst, const char *src)
+{
+ while (*src)
+ *dst++ = *src++;
+}
+
static inline int strcmp(const char *s1, const char *s2)
{
int r;