UTILS_strnlen() function
Calculates the length of pcString, up to xMaxLength.
Arguments
pcString
The string to find the length of.
xMaxLength
The limit when searching for the end of pcString.
Return value
0 if pcString is NULL; otherwise, the length of pcString or xMaxLength, whichever is smaller.