Clib.strncpy()
syntax: |
Clib.strncpy(dstStr, srcStr, maxLen) |
where: |
dstStr - destination string to which the source string will be copied.
srcStr - source string to copy to destination string.
maxLen - maximum number of characters to copy.
|
return: |
string - the value of dstStr after the copy process.
|
description: |
This method copies:
Clib.min(Clib.strlen(srcStr)+1, MaxLen)
characters from srcStr to dstStr. If dstStr is not already defined then this method defines it as a string. The destination string is padded with null characters, if maxLen is greater than the length of srcStr, and a null character is appended to dstStr if maxLen characters are copied. It is safe to copy from one part of a string to another part of the same string. Returns the value of dstStr; that is, a variable into the destination array based at dstStr[0].
|
see: |
|