|
Barbara, I use this technique and don't seem to have an issue. What should the prototype be? Would it make a copy of the address of the parameter value, which would be the original variable's address anyway? Bob Cozzi Cozzi Consulting www.rpgiv.com -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris Sent: Thursday, June 19, 2003 12:32 PM To: rpg400-l@xxxxxxxxxxxx Subject: Re: IFS Prototypes Bob cozzi wrote: > > Here are the rest of my IFS prototypes, sorry that I couldn't locate them > earlier. > ... > D fgets PR * ExtProc('_C_IFS_fgets') > D inBuffer * Value Options(*STRING) > ... Bob, why Options(*STRING) on inBuffer? That option allows you to pass a character expression, but when you do, the character expression always gets copied to a temporary with a null following it. If someone did pass a character field thinking it would get set by fgets, all that would actually be set would be the compiler's internal
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.