HP3000-L Archives

July 1998, Week 1

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:
wouter wijker <[log in to unmask]>
Reply To:
Date:
Tue, 7 Jul 1998 13:24:54 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
Mixing C and Cobol is always great fun.
Perhaps this helps:

1: You assume that an integer in C has the same layout as a S9(4) comp
   item in Cobol. Infact the S9(4) om many compilers occupies two bytes.
   If the C-int on your machine is 4 bytes, you will always get the
first two bytes in your program. Depending on the value you are stuck
with your zero value.

2: Be aware that there can be byte-ordering differences between C and
Cobol. Depending on the system you use.

3:Try democall(request,response,&integer);   or
      democall(&request[0], &response[0], &integer);

Please, do have fun. Makes live a lot more easier.

ATOM RSS1 RSS2