##### Synopsis

    #include <string_f.h>
    char *strncpy_c(char *s1, __code const char *s2, size_t n);

##### Description

strncpy_c copies not more than n characters from the array pointed to by s2 to the array pointed to by s1. Characters that follow a null character in s2 are not copied. If the array pointed to by s2 is a string that is shorter than n characters, null characters are appended to the copy in the array pointed to by s1, until n characters in all have been written.

strncpy_c returns the value of s1.

##### Portability

strncpy_c is an extension provided by CrossWorks.