SilverScreen Solid Modeler

strncat

strncat

Previous topic Next topic  

strncat

Previous topic Next topic JavaScript is required for the print function  

StandardCLibrary

 

char *strncat( char *s1, char *s2, size_t count )

 

char  *s1;              /* a string */

char  *s2;              /* a string */

size_t count;           /* maximum number of characters to append */

 

 




Synopsis

#include "string.h"

 

The strncat function appends up to count characters from s2 to the end of s1 . If a null character is encountered in s2 before count characters have been copied then the copying stops. s1 is then null-terminated.

 

 

Parameters

s1 and s2 are null-terminated strings. count is a positive integer

 

 

Return Value

strncat returns s1 .

 

See Also

strcat , strncpy