× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



    D open            Pr              *   ExtProc( '_C_IFS_fopen' )
    D                                 *   Value Options( *String )
    D                                 *   Value Options( *String )

Wow.  Can I ask where you found this example?

You're calling the ILE C fopen() API for the IFS. But you're referring to it as open() (which happens to be the name of a different API that opens IFS files!) in your RPG code. That's REALLY confusing.

It's always been my policy to name the prototypes the same as the APIs. that way, if someone wants to look up info about the API call, they're able to search the internet or look at examples in the manuals, etc. Renaming it to something else makes that more difficult and more confusing.

If I were reading the code and I see open() being called, would it even occur to me to check the prototype to make sure you're actually calling open() instead of fopen()? Probably not.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.