X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/00667e863a71afe22ed0111213eaf928e005c654..685b7e3e8c3436de0b719b53539d02651796c11a:/man/env.3 diff --git a/man/env.3 b/man/env.3 index d8fa9c4..2cab862 100644 --- a/man/env.3 +++ b/man/env.3 @@ -12,7 +12,7 @@ env \- efficient fiddling with environment variables .B "#include " .BI "char *env_get(sym_table *" t ", const char *" name ); -.BI "void env_put(sym_table * " t , +.BI "void env_put(sym_table *" t , .BI " const char *" name ", const char *" value ); .BI "void env_import(sym_table *" t ", char **" env ); .BI "char **env_export(sym_table *" t ); @@ -59,7 +59,8 @@ argument contains an character, it is assumed to be of the form .IB n = v\fR; the -.I value argument is ignored, and the variable +.I value +argument is ignored, and the variable .I n is assigned the value .IR v . @@ -67,8 +68,8 @@ Otherwise, if .I value is not a null pointer, the variable .I name -is assigned the value -.I value . +is assigned +.IR value . Finally, if .I value is null, the variable @@ -77,8 +78,8 @@ is deleted. .PP The .B env_destroy -function frees all the memory used by an environment symbol table. The -table itself is destroyed too. +function frees an environment symbol table, together with all of the +environment variables. .SH "SEE ALSO" .BR sym (3), .BR mLib (3).