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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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