summaryrefslogtreecommitdiffstats
path: root/man3/envz_add.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/envz_add.3')
-rw-r--r--man3/envz_add.316
1 files changed, 7 insertions, 9 deletions
diff --git a/man3/envz_add.3 b/man3/envz_add.3
index 274dda727..fcb5ca3fc 100644
--- a/man3/envz_add.3
+++ b/man3/envz_add.3
@@ -6,7 +6,7 @@
.\" based on the description in glibc source and infopages
.\"
.\" Corrections and additions, aeb
-.TH envz_add 3 2023-02-05 "Linux man-pages 6.03"
+.TH envz_add 3 2023-07-20 "Linux man-pages 6.05.01"
.SH NAME
envz_add, envz_entry, envz_get, envz_merge,
envz_remove, envz_strip \- environment string support
@@ -122,14 +122,14 @@ if an allocation error occurs.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).
-.ad l
-.nh
.TS
allbox;
lbx lb lb
l l l.
Interface Attribute Value
T{
+.na
+.nh
.BR envz_add (),
.BR envz_entry (),
.BR envz_get (),
@@ -138,27 +138,25 @@ T{
.BR envz_strip ()
T} Thread safety MT-Safe
.TE
-.hy
-.ad
.sp 1
.SH STANDARDS
-These functions are a GNU extension.
+GNU.
.SH EXAMPLES
.\" SRC BEGIN (envz_add.c)
.EX
#include <envz.h>
#include <stdio.h>
#include <stdlib.h>
-
+\&
int
main(int argc, char *argv[], char *envp[])
{
char *str;
size_t e_len = 0;
-
+\&
for (size_t i = 0; envp[i] != NULL; i++)
e_len += strlen(envp[i]) + 1;
-
+\&
str = envz_entry(*envp, e_len, "HOME");
printf("%s\en", str);
str = envz_get(*envp, e_len, "HOME");