delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <BAY113-F17C3BAD6409B07A1A9895BB2590@phx.gbl> |
X-Sender: | dsptech AT hotmail DOT com |
From: | "DSP Tech" <dsptech AT hotmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Binary file write has CRLF inserted |
Date: | Fri, 11 Nov 2005 14:37:24 +0000 |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
Hi, 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 { FILE *fp; fp = fopen("c:\\hi.yuv", "wb"); fwrite(OutputArray, 0x14E200, 1, fp); fclose(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 Regards Ralf _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |