7 if(destination == source || num == 0) {
13 FW_ASSERT(source + source_len <= destination || destination + num <= source);
15 char* returned = strncpy(destination, source, num);
16 destination[num - 1] =
'\0';
23 for (length = 0; length < max_len; length++) {
24 if (source[length] ==
'\0') {
char * string_copy(char *destination, const char *source, U32 num)
copy string with null-termination guaranteed
U32 string_length(const CHAR *source, U32 max_len)
get the length of the source string or max_len if the string is longer than max_len.