P
persres
Hi,
I want to know if reinterpret_cast is the correct one here. I want
to know what are the dangers or issues of doing this.
unsigned Len=0;
unsigned char buf[] = { 65, 66, 67, 0 };
Len = strlen(reinterpret_cast<char *>(buf));
Why should the compiler give a warning at all. Cant it just do the
conversion?. Seems harmless. Your thoughts please.
Thanks
I want to know if reinterpret_cast is the correct one here. I want
to know what are the dangers or issues of doing this.
unsigned Len=0;
unsigned char buf[] = { 65, 66, 67, 0 };
Len = strlen(reinterpret_cast<char *>(buf));
Why should the compiler give a warning at all. Cant it just do the
conversion?. Seems harmless. Your thoughts please.
Thanks