io - Appending bits to a file in C -
i'm working on crc32 program project , i've hit stumbling block. 32-bit uint asm code have, , in order test algorithm, need append exact bits end of text file threw algorithm, , we're kind of @ loss of how that. tried fprint, transformed int char , changed bits. same deal fwrite. there way fwrite we're missing? appreciated.
you have open file in binary mode.
it's possible have flip bytes (if asm code returns them in different endianness expected. if target big-endian, htonl work).
Comments
Post a Comment