www.delorie.com/djgpp//doc/libc-2.02/libc_344.html   search  
Go to the first, previous, next, last section, table of contents.


getenv

Syntax

#include <stdlib.h>

char *getenv(const char *name);

Description

Get the setting of the environment variable name. Do not alter or free the returned value.

Return Value

The value, or NULL if that variable does not exist.

Portability

ANSI, POSIX

Example

char *term = getenv("TERM");


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1998     Updated Dec 1998