Convert Unsigned Char Array into Uint8_T Array?

Convert Unsigned Char Array into Uint8_T Array?

I need convert unsigned char array into unit8_t array maybe someone has an idea how to do it?

I tried to look for information on the Internet, but unfortunately I did not succeed.

:)

1

2 Answers

So, have you tried uint8_t* myuint8array = (uint8_t*)myuchararray; ?

You have

unsigned char arr[size];

and you want

uint8_t arr[size];

uint8_t is simply defined as

typedef unsigned char uint8_t;

:-)

9

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.