Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OT: Passing a Unix environment variable to a 'C' program

Author: Michel Langeveld

Date: 12:39:20 05/03/04

Go up one level in this thread


On May 03, 2004 at 12:32:59, ArturoDiDonna wrote:

>Dear all,
>sorry for being OT, but I recently came across the following problem.
>I need to pass the content of the Unix environment variable 'pwd' to a 'C'
>variable and I was wondering if there was any way to perform this job. Ideally,
>I would like to be this code platform-independent code, if possible.
>
>I was wondering if there was any kind soul willing to help me.
>
>Thanks in advance.
>
>Arturo

getenv("PWD") should work.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.