Concept Framework 2.2 documentation Contents | Index

standard.C.string.strncpy

Name Version Deprecated
strncpy version 1.0 no

Prototype:
number strncpy(string strDest, string strSource, number count);

Parameters:
strDest      Destination string
strSource      Source string
count      Number of characters to be copied

Description:
Copy characters of one string to another.The strncpy function copies the initial count characters of strSource to strDest and returns strDest. If count is less than or equal to the length of strSource, a null character is not appended automatically to the copied string. If count is greater than the length of strSource, the destination string is padded with null characters up to length count. The behavior of strncpy is undefined if the source and destination strings overlap.

Returns:
Returns strDest.

Documented by Eduard Suica, generation time: Sun Jan 27 18:15:16 2013 GMT(c)2013 Devronium Applications