getenv man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

GETENV(2)							     GETENV(2)

NAME
       getenv, putenv - access environment variables

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       char* getenv(char *name)
       int   putenv(char *name, char *val)

DESCRIPTION
       Getenv  reads  the contents of /env/name (see env(3)) into memory allo‐
       cated with malloc(2), 0-terminates it, and returns a  pointer  to  that
       area.  If no file exists, 0 is returned.

       Putenv creates the file /env/name and writes the string val to it.  The
       terminating 0 is not written.  If the file value cannot be written,  -1
       is returned.

SOURCE
       /sys/src/libc/9sys

SEE ALSO
       env(3)

DIAGNOSTICS
       Sets errstr.

								     GETENV(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net