× 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.



On Thu, Apr 23, 2020 at 2:04 PM Francois Lavoie
<Francois.Lavoie@xxxxxxxxxxxxxxxxxxxx> wrote:

The getenv function returns a pointer to a string (doc doesn't say null-terminated string)

But it's a C function, and in C, strings are null-terminated.

So, my assumption is that the %str function is useless with getenv
Just this will work too:
getenv('some_var')='some_value';

It shouldn't, unless you've written your own ILE procedure called
`getenv` which wraps up C's `getenv` such that the conversion to
RPG-style string is encapsulated in the ILE procedure.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.