25 Mar
2003
25 Mar
'03
09:25
On Tuesday 25 March 2003 04:09 am, Hallingstad Håkon wrote:
The ADDRESS environ is represented by four bytes on your architecture. So sizeof(environ)==4, which explains your observation of only four iterations of the loop.
To loop through the environ variables correctly, you should use something like for (i=0; environ[i]!=NULL; ++i) {...}
Ok, I think I get it. The example in Ellis & Stroustrup refers to an _array_ **environ is simply a pointer to a pointer to char. Thanks for the help. That seems to have worked. I can tell it's going to be 'interesting' learning to work with QT. STH