Re: write and fwrite send extra bytes when writing binary data to stdout

2003-02-25 Thread Randall R Schulz
Emilio, For starters, please put your "cygcheck" output in an uncompressed attachment (that is not placed in-line). You're writing a file in Cygwin's "text" mode, which duplicates the line-ending convention of Windows. You were unlucky enough for there to be a "newline" octet in your output da

write and fwrite send extra bytes when writing binary data to stdout

2003-02-25 Thread Emilio Hernandez-Garcia
Hi all, This code is supposed to use 'write' to write in binary format a float array of 12 elements (thus 4*12=48 bytes) to stdout (on execution it is redirected to a file): /* * */ #include main() { float const vector[12]={1.,0.2,2.,0.,1.,-1.,512.,512.,0