Hi,
i have one array of uint8_t which has 128 element's.
i have copied string which is being received to serial to array. (Data bytes are 50 only).
When i check length for array it is return value as 0. even tough data is present in the string.
how strlen is works?
do i have to append '\0' to string? i tried this one but not working..
i have one array of uint8_t which has 128 element's.
i have copied string which is being received to serial to array. (Data bytes are 50 only).
When i check length for array it is return value as 0. even tough data is present in the string.
how strlen is works?
do i have to append '\0' to string? i tried this one but not working..