I know all that. @DavidNoon said I had to pass the decimal data by value. I was wondering aloud how the compiler would do that. Never mind in some hack -- how it does it normally.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Thomas David Rivers Sent: Wednesday, April 26, 2017 10:37 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Can XLC printf() take "%D(*,*)"? Charles Mills wrote: > >I wonder how C passes a potentially 16-byte string by value. > > > Not sure what you mean by that question... a C string constant is an array of characters; otherwise a C 'string' is typically a pointer to a character or a declared array of characters. When you pass an array as a parameter; it is converted to a pointer to the first element and the pointer is passed. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN