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:
"Anderson, Michael" <[log in to unmask]>
Reply To:
Anderson, Michael
Date:
Wed, 29 Oct 1997 13:20:09 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Red in the face, but I'll say it anyway for the benefit of any other
novice "C" programmers.

I was troubled with this same problem for at least two hours until I
finally figured out that I needed to put the "&" ampersand in front of
the parameters in question. I'm not sure what the ampersand does for the
"C" compiler, I know it doesn't correspond to the USING and GIVING in
COBOL, it's closer to the BY REFERENCE or BY VALUE. Any further
explanations will be humbly accepted.

My apologies if this isn't clear. The problem is that I have wired my
brain for COBOL and the process of making the Neuron-Conversion to "C"
is going to take a few months.


>-----Original Message-----
>From:  [log in to unmask] [SMTP:[log in to unmask]]
>Sent:  Wednesday, October 29, 1997 10:45 AM
>To:    [log in to unmask]
>Subject:       Using Intrinsics with C
>
>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.
>
>The compiler telsss me that:
> line 61: error 1620: Argument 3 is not the correct type.
> line 61: error 1620: Argument 5 is not the correct type.
>
>What am I doing wrong??
>
>TIA
>Jerry Mitchell
>DynCorp
>APG,  MD

ATOM RSS1 RSS2