Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2019-08-26 00:00:00Z and 2019-08-27 00:00:00Z
Avatar
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...
Avatar
lets try this then
17:34
thx a lot man @jxsl13
Exported 4 message(s)