SETENVIRON

Linux specific questions.
grindstone
Posts: 862
Joined: May 05, 2015 5:35
Location: Germany

Re: SETENVIRON

Post by grindstone »

fxm wrote:When using 'SETENVIRON(envStr)' with Linux, the 'envStr' string must be permanent (a literal, a variable declared in the main code or a static variable declared in a procedure), because Linux does not memorize the string but only a pointer to its data characters.
Then what about ZSTRING ?
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: SETENVIRON

Post by fxm »

A string literal is by principle always a Zstring.
Otherwise, for Zstring variables, same constraint.
Post Reply