D
DomoChan
the code below will compile in visual c++ 2003, but im not sure its
valid.
unsigned char myString[200] = "";
after this line executes, all the bytes within myString are indeed set
to '0's' but is this really valid c++ or c? where can I find out how
this is implemented?
Im concerned because I had a 3rd party library wrapper which was
crashing, and I was able to alleviate the crash by changing the
initialization method from the above to ...
unsigned char myString[200];
memset( myString, 0, sizeof( myString ) );
any guidance is greatly appreciated!
-Velik
valid.
unsigned char myString[200] = "";
after this line executes, all the bytes within myString are indeed set
to '0's' but is this really valid c++ or c? where can I find out how
this is implemented?
Im concerned because I had a 3rd party library wrapper which was
crashing, and I was able to alleviate the crash by changing the
initialization method from the above to ...
unsigned char myString[200];
memset( myString, 0, sizeof( myString ) );
any guidance is greatly appreciated!
-Velik