welibc
A clear, secure, and well documented standard C library
|
Defines the strncat function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
char * | strncat (char *s1, const char *s2, size_t n) |
Concatenates two strings, appending no more than n characters. More... | |
Defines the strncat function.
Definition in file strncat.c.
char* strncat | ( | char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
Concatenates two strings, appending no more than n characters.
*s1 | Destination string |
*s2 | String to be appended |
n | Maximum number of characters to append |
The strncat function appends not more than n characters (a null character and characters that follow it are not appended) from the array pointed to by s2 to the end of the string pointed to by s1. The initial character of s2 overwrites the null character at the end of s1. A terminating null character is always appended to the result. If copying takes place between objects that overlap, the behavior is undefined.
Definition at line 62 of file strncat.c.
References memmove(), and strlen().