- Code: Select all
PICO_STATUS UsbPt104GetValue (
long * value,
The long * value argument receives the data. I see that it is a pointer - how large is the returned data? Is it guaranteed to just be a single long-size item, or is the pointer indicating that an array of items can be returned here? If so, how can the programmer tell how much space to allocate for the data?
That's it, really. I'm assuming that just a single long-size item is returned, but assuming things is how bugs tend to work their way into my code! If anyone can let me know for sure, that would be great.