Yes, of course, printf don't like binary data because of it dedicated to print formatted (i.e text) data (but it can write in binary mode too).
Use ANSI/ISO Standard library function fwrite():
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.