Currently At: Programming Reference > C Reference > Standard C String & Character > strncpy()

strncpy()


Syntax:
#include <string.h>
char *strncpy( char *to, const char *from, size_t count );


Description:
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.

Related Topics:
memcpy(), strchr(), strncat(), strncmp()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions