How to convert a string to Unsigned char in c++...
I have,
unsigned char m_Test[8];
I want to assign a string \"Hello world\"
\"Hello world\"
strncpy(m_Test, "Hello world", sizeof(m_Test));
Here's Wikipedia on strncpy: