Last modified on 24 July 2010, at 17:08
#include <cstring> char *strncpy( char *to, const char *from, size_t count );
The strncpy() function copies at most count characters of from to the string to. Only if from has less than count characters, is the remainder padded with '\0' characters. The return value is the resulting string.