Hi,
I have to write a .bin file with a specific format (64 words, 12 bits each word). I can create a file with a bunch of zeros and ones, but each one of those numbers ends being a byte, not a bit.
How can I use fwrite to output a given set of numbers (eg.1300 and 29) to a file in 12-bit format?
Any help is much appreciated!