MicrOS
strncat.c File Reference
#include "../string.h"

Functions

char * strncat (char *destination, const char *source, size_t num)
 Append characters from string. More...
 

Function Documentation

◆ strncat()

char* strncat ( char *  destination,
const char *  source,
size_t  num 
)

Append characters from string.

Appends the first num characters of source to destination, plus a terminating null-character.

Parameters
destinationPointer to the destination array, which should contain a C string, and be large enough to contain the concatenated resulting string, including the additional null-character.
sourceC string to be appended.
numMaximum number of characters to be appended.
Returns
Destination is returned.