Article View: comp.os.msdos.programmer
Article #4729Re: Fastest dump to disk?
From: Mike Castle {Nexus}
Date: Sun, 17 Feb 1991 02:40
Date: Sun, 17 Feb 1991 02:40
19 lines
1338 bytes
1338 bytes
In article <91043.105618JJLUCSY@MTUS5.BITNET> JJLUCSY@MTUS5.BITNET writes:
>Could someone please tell me what is the fastest way to dump a chunk of memory
>to disk using either Turbo C v.2 or Turbo C++. I'm not to particular on the
>method, but it should be real quick. Thanks in advance.
>
>Joel Lucsy (JJLUCSY@MTUS5.BITNET or JJLUCSY@MTUS5.CTS.MTU.EDU)
Try fwrite. The prototype is:
size_t fwrite(const void *ptr, size_t size, size_t n, FILE *stream);
It starts at *ptr and writes n records of size size to file pointed to by
steam.
--
Mike Castle (Nexus) S087891@UMRVMA.UMR.EDU (preferred) | RN ate my
mcastle@mcs213k.cs.umr.edu (unix mail-YEACH!)| .newsrc!
Life is like a clock: You can work constantly, and be right | I am not
all the time, or not work at all, and be right twice a day. | happy :-<
Technical Details
Message-ID:
<2184@umriscc.isc.umr.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!umriscc!mcs213f.cs.umr.edu!mcastleReferences:
<91043.105618JJLUCSY@MTUS5.BITNET>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!umriscc!mcs213f.cs.umr.edu!mcastle
From: mcastle@mcs213f.cs.umr.edu (Mike Castle {Nexus})
Newsgroups: comp.os.msdos.programmer
Subject: Re: Fastest dump to disk?
Message-ID: <2184@umriscc.isc.umr.edu>
Date: 17 Feb 91 02:40:53 GMT
References: <91043.105618JJLUCSY@MTUS5.BITNET>
Sender: news@umriscc.isc.umr.edu
Organization: University of Missouri - Rolla
Lines: 19