Re: variable d'environnement

Startseite

Nachricht beantworten
Autor: Patrick Begou
Datum:  
To: guilde
Betreff: Re: variable d'environnement
Patrick Dupre LCMI wrote:
>
> Coment je peux recuperer le contenu d'une variable d'environnement a l'interieur
> d'un programme c ?
> Merci
>
>

getenv Subroutine

Purpose

Returns the value of an environment variable.

Library

Standard C Library (libc.a)

Syntax

#include <stdlib.h>

char *getenv (Name)
const char *Name;

Description

The getenv subroutine searches the environment list for a string of the
form Name=Value. Environment variables are sometimes called shell
variables because they are frequently set with shell commands....

--
===============================================================
|  Equipe M.O.S.T.         | http://most.hmg.inpg.fr          |
|  Patrick BEGOU           |       ------------               |
|  LEGI                    | mailto:Patrick.Begou@hmg.inpg.fr |
|  BP 53 X                 | Tel 04 76 82 51 35               |
|  38041 GRENOBLE CEDEX    | Fax 04 76 82 52 71               |

===============================================================