Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Aaron Johnson — — source: Informix-list mailing list archive (1991-1998)
This is code we use and seems to work fine.
We pass in string and length, could shorten this as well
int myputenv(int num_arg)
{
char *pString;
int BufLen;
popint(&BufLen);
if (BufLen<=0)
return 0;
pString = malloc(BufLen+2);
popvchar(pString,BufLen+1);
Clip(pString); // just a define to trim trailing blanks
putenv(pString);
return(0);
}
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.