This is the mail archive of the
mailing list for the Cygwin project.
Binary file write has CRLF inserted
- From: "DSP Tech" <dsptech at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 11 Nov 2005 14:37:24 +0000
- Subject: Binary file write has CRLF inserted
I have used cygwin to build the GCC ARM tools and libraries. I am using the
cygwin1.dll for running my application on windows.
But file write in my application program has problem. The code is
fp = fopen("c:\\hi.yuv", "wb");
fwrite(OutputArray, 0x14E200, 1, fp);
All Line Feeds(0x0A) are replaced by CRLF( 0x0D 0x0A) when written to a file
though I am opening the file in binary mode. Is there a method to write the
data in the buffer "Outputarray" as it is. Kindly help
Express yourself instantly with MSN Messenger! Download today - it's FREE!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html