This is the mail archive of the email@example.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Problem with getenv
- To: firstname.lastname@example.org
- Subject: Problem with getenv
- From: "Michael K Collison" <Michael_K_Collison@iassoc.ultranet.com>
- Date: Wed, 28 Apr 1999 23:48:30 -0400
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:
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.
Want to unsubscribe from this list?
Send a message to email@example.com