STD_CopyLStringZeroFill

C Specification

#include <nitro/std.h>

int STD_CopyLStringZeroFill( char* destp, const char* srcp, int n );

Arguments

destp Specifies the copy destination pointer.
srcp Specifies the copy source pointer.
n Designates the write buffer size of the copy destination.

Return Values

Returns the character string length of the copy source.

Description

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().

See Also

STD_CopyString,STD_CopyLString

Revision History

06/06/2006 Migration from the old STD_CopyLString


CONFIDENTIAL