strcopy

Last Updated2022-02-25
Created At2007-04-11

Copies one string to another string.

Notes

If the destination buffer is too small to hold the source string, the destination will be truncated.

native int strcopy(char[] dest, int destLen, const char[] source)

Parameters

char[] dest
Destination string buffer to copy to.
int destLen
Destination buffer length (includes null terminator).
const char[] source
Source string buffer to copy from.

Return Value

int Number of characters written to the buffer, not including the null terminator.