help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing integers with fwrite


From: Miroslaw Kwasniak
Subject: Re: Writing integers with fwrite
Date: Mon, 13 Dec 2004 22:50:02 +0100
User-agent: Mutt/1.5.6+20040907i

On Mon, Dec 13, 2004 at 02:49:20PM -0600, Reiner Suikat wrote:
> Hello,
> I'm new to Octave and need to do some binary file-IO. Question: How can I
> convert a number such that fwrite(file, value, 'ulong') writes ONE 32
> bit-value and not two of them?

ulong is machine/compiler dependend. If your ulong isn't 64bit there is a
some bug(???). If you want to be sure use uint32 not ulong.

Mirek



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]