@node strncpy, string @subheading Syntax @example #include char *strncpy(char *s1, const char *s2, size_t max); @end example @subheading Description This function copies up to @var{max} characters of @var{s2} into @var{s1}. @subheading Return Value @var{s1} @subheading Portability @portability ansi, posix @subheading Example @example char buf[100]; strncpy(buf, arg, 99); @end example