-----Original Message-----
From: Scott Klement [mailto:rpg400-l@xxxxxxxxxxxxxxxx]
Sent: Friday, September 01, 2017 2:53 AM
To: RPG programming on the IBM i (AS/400 and iSeries) <rpg400-l@xxxxxxxxxxxx>
Subject: Re: Intermittent putenv() problem
Justin,
Your prototype is missing the return value. The putenv() API returns an
int(10) value. Since this is missing, the results of calling this will be "unpredictable", which might be the cause of your woes.
There shouldn't be any need to run RMVENVVAR, putenv() will replace the previous value.
-SK
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.