Name

strncpy —

Synopsis

string strncpy(str, n);
string str;
int n;

Description

Returns a new string copying characters from string str until either it has copied n characters or it has reached the end of string str

Parameters

str

The string

n

Max chars to append to str

Returns

The string result of operation

See Also

method.ansi.strncat