aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/lib/strncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/lib/strncpy.c')
-rw-r--r--arch/blackfin/lib/strncpy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/blackfin/lib/strncpy.c b/arch/blackfin/lib/strncpy.c
new file mode 100644
index 00000000000..77a9b2e9509
--- /dev/null
+++ b/arch/blackfin/lib/strncpy.c
@@ -0,0 +1,11 @@
1#include <linux/types.h>
2
3#define strncpy __inline_strncpy
4#include <asm/string.h>
5#undef strncpy
6
7char *strncpy(char *dest, const char *src, size_t n)
8{
9 return __inline_strncpy(dest, src, n);
10}
11