#include <nitro/std.h>
int STD_CopyLStringZeroFill( char* destp, const char* srcp, int n );
destp | Specifies the copy destination pointer. |
srcp | Specifies the copy source pointer. |
n | Designates the write buffer size of the copy destination. |
Returns the character string length of the copy source.
Copies (n-1) characters from the string srcp to the string destp.
You must designate a value lower than or equal to the buffer size of the copy destination in the argument n.
STD_CopyLStringZeroFill()
fills the remainder with a zero when the copy source buffer size is smaller than the size to be copied.
A NULL will always be copied to the end of the copy destination character string.
Note: Although the name of this function has an "L" in it, it operates differently from the general strlcpy().
The function STD_CopyLString()
has been prepared as the function that has the same operations as strlcpy().
STD_CopyString,STD_CopyLString
06/06/2006 Migration from the old STD_CopyLString
CONFIDENTIAL