We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I am working with the TI TUSB3200, trying to modify their example code for our own USB device. USB requires many tables which start with a length byte. I would like to use the sizeof operator to calculate this for me, as shown here:
byte code rictest[] = { sizeof(rictest), 1, 2 };
warning C198: sizeof returns 0
"What's wrong with a bit of redundancy? :~)" It's not redundancy, it's tautology! "It fits in well with 'LCD display', 'DOS operating System', 'PIN number', 'USB bus' ... Yes, it's exactly the same error - they're all just as bad! ;-)