strncpy
 
Syntax

         

#include "string.h"

char *strncpy( char *to, char *from, unsigned int count );
 

The strncpy() function copies at most count characters of from

to the string to. If from has less than count characters, the

remainder is padded with '\0' characters. The return value is

the resulting string.