Query: getenv
OS: plan9
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETENV(2) System Calls Manual GETENV(2)NAMEgetenv, putenv - access environment variablesSYNOPSIS#include <u.h> #include <libc.h> char* getenv(char *name) int putenv(char *name, char *val)DESCRIPTIONGetenv reads the contents of /env/name (see env(3)) into memory allocated 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/9sysSEE ALSOenv(3)DIAGNOSTICSSets errstr. GETENV(2)
Related Man Pages |
---|
getenv(3) - netbsd |
putenv(3) - netbsd |
getenv(3) - x11r4 |
secure_getenv(3) - opendarwin |
secure_getenv(3) - mojave |
Similar Topics in the Unix Linux Community |
---|
getenv(3c) |