[A89] Re: Handles
[Prev][Next][Index][Thread]
[A89] Re: Handles
I'm a little confused here. Are you trying to write a memory block to a
file? Is this memory block a character array?
If so, try this:
char *block = (char *)HeapDeref(handle);
fwrite(block,strlen(block),1,f);
Where f is the FILE *.
However, this will only work if it's a character array, null terminated.
What kind of memory block is this?
John David Ratliff
jdratlif@cs.indiana.edu
-----Original Message-----
From: assembly-89-bounce@lists.ticalc.org
[mailto:assembly-89-bounce@lists.ticalc.org]On Behalf Of Richard Cypher
Sent: Friday, June 29, 2001 6:12 PM
To: assembly-89@lists.ticalc.org
Subject: [A89] Re: Handles
All right, I sorta solved my problem.
// code starts
testPtr = HeapDeref(handle);
file 1 = fopen("test", "wt");
do
{
ch = putc(peek(testPtr), file1);
testPtr++;
} while (ch != EOF);
// end code
The only problem is it's really slow. Does anyone know
why and / or how I can speed this up?
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Follow-Ups:
References: