just look at the std::string methods in C++ and compare them with C its string functions
those strings in C are the thing that are disturbing me the most
Yes, in C it's more steps, but it's not 'weird'. String == pointer to a char array that ends with 0
or you can just use a library that has invented the wheel. https://developer.gnome.org/glib/stable/glib-String-Utility-Functions.html https://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html https://developer.gnome.org/glib/stable/glib-Unicode-Manipulation.html
Обсуждают сегодня