I have a piece fo code that I need to modify to return the number of bytes in a smart array of type <char>. Anyone know how to do this? I don't use smart types (I think they are yucky), but I have to fix someone elses code on this one.
I have a piece fo code that I need to modify to return the number of bytes in a smart array of type <char>. Anyone know how to do this? I don't use smart types (I think they are yucky), but I have to fix someone elses code on this one.
Note that the only definite guarantee that C and C++ give about sizes of types is that sizeof(char) == 1. That's because other types are measured in terms of char.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
I see you using a lot of windows-esque notation in some of your other code. Are you working with chars or TCHARs?