diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-27 20:06:07 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-27 20:06:07 -0500 |
| commit | 92edcf6dd316c6b8b5a6564e299a61be0a3b529b (patch) | |
| tree | e30239e113d5f30e9ec4599daba9a6427bada9a9 /src | |
| parent | eca972445f2cef5cb86c36d9beb7cb791bc88fc8 (diff) | |
add documentation
Diffstat (limited to 'src')
| -rw-r--r-- | src/environ.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/environ.c b/src/environ.c index 62ce6652..25b5c0d8 100644 --- a/src/environ.c +++ b/src/environ.c @@ -1,4 +1,17 @@ +/** process environment **/ char **environ; + +/*** +points to an array of pointers to strings representing the process's environmnt +variables. Strings are in the form STRING(VAR(variable)=VAR(value)). A +CONST(NULL) pointer indicates the end of the environment. + +Note that THIS() is not declared in any header file, and must be declared +(with TYPE(extern) linkage) manually in a program to be used. Alternatively, +it can be manipulated with the functions FUNCTION(getenv), FUNCTION(setenv), +FUNCTION(unsetenv), and FUNCTION(putenv). +***/ + /* POSIX(1) */ |
