diff options
Diffstat (limited to 'memory/strncpy.c')
-rw-r--r-- | memory/strncpy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/memory/strncpy.c b/memory/strncpy.c new file mode 100644 index 0000000..75e49e5 --- /dev/null +++ b/memory/strncpy.c @@ -0,0 +1,7 @@ +#include "memory.h" + +char *strncpy(char *destination, char const *source, size_t count) +{ + stpncpy(destination, source, count); + return destination; +} |