In a C++ class I\'ve the following code/while loop:
uint8_t len = 0; while (*s != \',\') { len = (uint8_t)(len + 1u); ++s; } return (len);