Reputation: 8109
I'm reading binary data from a file, the particular value in question is a uchar
(unsigned 1-byte value) and conceptually is boolean. How do I write the fread
statement?
I.e. what should I put in for ???
in the following:
is_valid=fread(fid, 1, 'uint8=>???','a');
I figure that I could use '*uint8'
for the conversion string, but I'd like for the result type to be most-like what other users would expect.
Upvotes: 0
Views: 263