Lstrncat

Appends a specified number of characters of one string to another string.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  char *Lstrncat (
     char         *dst,   
     const char   *src,   
     size_t        n);
  

Parameters

dst

(OUT) Points to the string to which to append the characters.

src

(IN) Points to the string containing the characters to append.

n

(IN) Specifies the maximum number of characters to append.

Return Values

Returns the destination string.

Remarks

The Lstrncat function is a double-byte character interface. It appends not more than n characters of the string pointed to by src to the end of the string pointed to by dst. The first character of src overwrites the NULL character at the end of dst. A terminating NULL character is always appended to the result.

See Also

Lstrcat