Hi Tony,
IIRC, the pointer to structure (or array), is passed as a value like anything else. Yes,  the value passed allows the programmer to access the structure or array, BUT, it's still a value like anything else (and will not be modified upon return).

Regards,
David

On 2023-03-26 18:33, Tony Thigpen wrote:
Structures are passed by address, not value.

Tony Thigpen

Paul Gilmartin wrote on 3/26/23 18:19:
On Sun, 26 Mar 2023 21:35:13 +0000, Frank Swarbrick wrote:

Can the MVS CALL macro be used to call a C function with "value" parameters (rather than reference parameters)?

Aren't all parameters in C passed by value?  C has no construct of "reference parameters".

--
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to