Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created November 4, 2018 09:04
Show Gist options
  • Save miguelmota/9837dc763da3bb507725251b40f6d863 to your computer and use it in GitHub Desktop.
Save miguelmota/9837dc763da3bb507725251b40f6d863 to your computer and use it in GitHub Desktop.
C++ unsigned char array to string
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