Subject: | |
From: | |
Reply To: | |
Date: | Wed, 29 Oct 1997 12:04:57 -0500 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
On Wed, 29 Oct 1997 [log in to unmask] wrote:
> Please excuse what is probably a dump question from a "C" neophyte but,
> I am tring to call the FFILEINFO Intrinsic (items 4 recsize and 10
> eof). I am declaring recsize as short and eof as long.
Without testing... I believe you may not be passing the return variable
by address. You need to pass the address of the variable which is
to receive the values for Recordsize and EOF.
I think they should be defined as short int for Recordsize and int for
EOF. If memory serves (and it usually doesn't) the following code segment
should clear things up
short int recsize;
int fileeof;
FFILEINFO( file, 4, &recsize, 10, &fileeof);
I hope that helps,
Jim
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
James R. Alton phone: (905) 575-2281
Technical Support Specialist Fax: (905) 575-2302
Mohawk College mailto:[log in to unmask]
|
|
|