diff options
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/strncat.c')
-rw-r--r-- | contrib/syslinux-4.02/com32/lib/strncat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/strncat.c b/contrib/syslinux-4.02/com32/lib/strncat.c new file mode 100644 index 0000000..71cdb35 --- /dev/null +++ b/contrib/syslinux-4.02/com32/lib/strncat.c @@ -0,0 +1,11 @@ +/* + * strncat.c + */ + +#include <string.h> + +char *strncat(char *dst, const char *src, size_t n) +{ + strncpy(strchr(dst, '\0'), src, n); + return dst; +} |