W
wenmang
Hi, all:
I try to understand whether it is a portable to cast a pointer type,
e.g.,
char *ptr = char array[10]; -- a buffer
unsigned char *uptr = ptr;
:
:
function(uptr); -- execute a function that takes unsigned char * as
arg
What is the impact for such cast? is it safe to do this for
memory(buffer) manipulation?
Thanks.
I try to understand whether it is a portable to cast a pointer type,
e.g.,
char *ptr = char array[10]; -- a buffer
unsigned char *uptr = ptr;
:
:
function(uptr); -- execute a function that takes unsigned char * as
arg
What is the impact for such cast? is it safe to do this for
memory(buffer) manipulation?
Thanks.