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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -