From: "Tom Morton" Newsgroups: comp.os.msdos.djgpp Subject: 64 bit integer, putc and double. Date: Thu, 9 Sep 1999 16:16:23 +0100 Organization: Yikes Station Ltd. Lines: 21 Message-ID: <7r8ied$9im$1@news7.svr.pol.co.uk> NNTP-Posting-Host: modem-23.phenytoin.dialup.pol.co.uk X-Trace: news7.svr.pol.co.uk 936889613 9814 62.136.83.151 (9 Sep 1999 15:06:53 GMT) NNTP-Posting-Date: 9 Sep 1999 15:06:53 GMT X-Complaints-To: abuse AT theplanet DOT net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have 2 questions: 1. Does djgpp support 64-bit integers? 2. I need to store float and double variables in a binary savegame file. How is this done using getc/putc. My plan is to shove the address of the float into a long integer pointer and then write the float to the file as if it is an 32-bit integer. Saving doubles would involve saving the first and second 32-bits as seperate chunks. (Doubles are 64-bit, right?) Does that sound correct? I realise that to save long integers I will have to break them into bytes first. -- Yikes Station: Frontier Elite 2 Website http://www.yikesstation.freeserve.co.uk/frontier/yikes.htm Tom 'Moretom' Morton