delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/07/06:50:11

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ios::binary ignored by GCC - HELP!
Date: 7 Nov 1998 11:49:51 GMT
Organization: University of Lulea, Sweden
Lines: 16
Message-ID: <721c4v$sga$2@news.luth.se>
References: <fycflpbqrpbz DOT f2134e0 DOT pminews AT nntp DOT generation DOT net> <7208uh$epn$1 AT news DOT luth DOT se> <fycflpbqrpbz DOT f21i3u0 DOT pminews AT nntp DOT generation DOT net>
NNTP-Posting-Host: queeg.ludd.luth.se
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

sl (sl AT psycode DOT com DOT REMOVE_THIS) wrote:
: 	But then what happens when/if I try to write "int" to the file? All
: it really requires is two bytes, but GCC writes it out as its text

No. In DJGPP an int is four bytes.

: counterpart for some reason..

You mean "printf("%d", 7);" prints text? That is what it's supposed to
do. You probably want to use write() and friends if it's binary data
you want.


Pettersson, Symphony No. 13,

							MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019