Instead of casting to const char, make the function return const char* as well as the passed argument.
That casting looks super unclean imo.
#### Before:
c++
char *str_utf8_skip_whitespaces(char *str)
{
char *str_old;
int code;
while(*str)
{
str_old = str;
code = str_utf8_decode((const char **)&str); // <----- This here
if(!str_utf8_is_whitespace(code))
{
return str_old;
}
}
return str;
}
#### After:
```c++
const char *str_utf8_skip_whites...