Problem with getenv

Michael K Collison Michael_K_Collison@iassoc.ultranet.com
Wed Apr 28 20:50:00 GMT 1999


I have a small program that uses getenv to grab an environment variable.
Based on this variable I construct a path to a program. I them use this
path in a call to 'system' like this:

i = system(path);

The problem is that the path (returned from 'getenv') looks something like:

c:\\root\\subdir\\etc

The error I get from the system command is:

'c:rootsubdiretc: no such device or address

It's obvious that the system command is not parsing the path correctly. Is
there any way to solve this problem.

Mike



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list