Created
November 4, 2018 09:04
-
-
Save miguelmota/9837dc763da3bb507725251b40f6d863 to your computer and use it in GitHub Desktop.
C++ unsigned char array to string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned char mychar[len]; | |
std::string mytext(reinterpret_cast<char*>(mychar)); | |
print(mytext); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment