HP3000-L Archives

October 1997, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jim Alton <[log in to unmask]>
Reply To:
Jim Alton <[log in to unmask]>
Date:
Wed, 29 Oct 1997 12:04:57 -0500
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (27 lines)
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]

ATOM RSS1 RSS2