convert const char* to uint8_t code example Example: const char to string const char * s = "hello"; std::string str(s);