OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / argz_add.3
index 9032cf1..88b03aa 100644 (file)
@@ -7,7 +7,7 @@
 .\" based on the description in glibc source and infopages
 .\"
 .\" Corrections and additions, aeb
 .\" based on the description in glibc source and infopages
 .\"
 .\" Corrections and additions, aeb
-.TH ARGZ_ADD 3 2007-05-18  "" "Linux Programmer's Manual"
+.TH ARGZ_ADD 3 2014-05-28  "" "Linux Programmer's Manual"
 .SH NAME
 argz_add, argz_add_sep, argz_append, argz_count, argz_create,
 argz_create_sep, argz_delete, argz_extract, argz_insert,
 .SH NAME
 argz_add, argz_add_sep, argz_append, argz_count, argz_create,
 argz_create_sep, argz_delete, argz_extract, argz_insert,
@@ -33,14 +33,14 @@ argz_next, argz_replace, argz_stringify \- functions to handle an argz list
 .BI "error_t argz_create_sep(const char *" str ", int " sep ", char **" argz ,
 .BI "                     size_t *" argz_len );
 .sp
 .BI "error_t argz_create_sep(const char *" str ", int " sep ", char **" argz ,
 .BI "                     size_t *" argz_len );
 .sp
-.BI "error_t argz_delete(char **" argz ", size_t *" argz_len ", char *" entry );
+.BI "void argz_delete(char **" argz ", size_t *" argz_len ", char *" entry );
 .sp
 .sp
-.BI "void argz_extract(char *" argz ", size_t " argz_len ", char  **" argv );
+.BI "void argz_extract(const char *" argz ", size_t " argz_len ", char  **" argv );
 .sp
 .BI "error_t argz_insert(char **" argz ", size_t *" argz_len ", char *" before ,
 .BI "                     const char *" entry );
 .sp
 .sp
 .BI "error_t argz_insert(char **" argz ", size_t *" argz_len ", char *" before ,
 .BI "                     const char *" entry );
 .sp
-.BI "char *argz_next(char *" argz ", size_t " argz_len ", const char *" entry );
+.BI "char *argz_next(const char *" argz ", size_t " argz_len ", const char *" entry );
 .sp
 .BI "error_t argz_replace(char **" argz ", size_t *" argz_len \
 ", const char *" str ,
 .sp
 .BI "error_t argz_replace(char **" argz ", size_t *" argz_len \
 ", const char *" str ,
@@ -58,7 +58,7 @@ If the length is nonzero, the last byte of the buffer must be a null byte.
 .LP
 These functions are for handling argz vectors.
 The pair (NULL,0) is an argz vector, and, conversely,
 .LP
 These functions are for handling argz vectors.
 The pair (NULL,0) is an argz vector, and, conversely,
-argz vectors of length 0 must have NULL pointer.
+argz vectors of length 0 must have null pointer.
 Allocation of nonempty argz vectors is done using
 .BR malloc (3),
 so that
 Allocation of nonempty argz vectors is done using
 .BR malloc (3),
 so that
@@ -85,9 +85,9 @@ delimiter \(aq:\(aq.
 .LP
 .BR argz_append ()
 appends the argz vector
 .LP
 .BR argz_append ()
 appends the argz vector
-.RI ( buf ,\ buf_len )
+.RI ( buf ,\  buf_len )
 after
 after
-.RI ( *argz ,\ *argz_len )
+.RI ( *argz ,\  *argz_len )
 and updates
 .IR *argz
 and
 and updates
 .IR *argz
 and
@@ -100,7 +100,7 @@ will be increased by
 .BR argz_count ()
 counts the number of strings, that is,
 the number of null bytes (\(aq\\0\(aq), in
 .BR argz_count ()
 counts the number of strings, that is,
 the number of null bytes (\(aq\\0\(aq), in
-.RI ( argz ,\ argz_len ).
+.RI ( argz ,\  argz_len ).
 .LP
 .BR argz_create ()
 converts a UNIX-style argument vector
 .LP
 .BR argz_create ()
 converts a UNIX-style argument vector
@@ -108,13 +108,13 @@ converts a UNIX-style argument vector
 terminated by
 .IR "(char\ *)\ 0" ,
 into an argz vector
 terminated by
 .IR "(char\ *)\ 0" ,
 into an argz vector
-.RI ( *argz ,\ *argz_len ).
+.RI ( *argz ,\  *argz_len ).
 .LP
 .BR argz_create_sep ()
 converts the null-terminated string
 .I str
 into an argz vector
 .LP
 .BR argz_create_sep ()
 converts the null-terminated string
 .I str
 into an argz vector
-.RI ( *argz ,\ *argz_len )
+.RI ( *argz ,\  *argz_len )
 by breaking it up at every occurrence of the separator
 .IR sep .
 .LP
 by breaking it up at every occurrence of the separator
 .IR sep .
 .LP
@@ -122,7 +122,7 @@ by breaking it up at every occurrence of the separator
 removes the substring pointed to by
 .I entry
 from the argz vector
 removes the substring pointed to by
 .I entry
 from the argz vector
-.RI ( *argz ,\ *argz_len )
+.RI ( *argz ,\  *argz_len )
 and updates
 .I *argz
 and
 and updates
 .I *argz
 and
@@ -132,7 +132,7 @@ and
 is the opposite of
 .BR argz_create ().
 It takes the argz vector
 is the opposite of
 .BR argz_create ().
 It takes the argz vector
-.RI ( argz ,\ argz_len )
+.RI ( argz ,\  argz_len )
 and fills the array starting at
 .I argv
 with pointers to the substrings, and a final NULL,
 and fills the array starting at
 .I argv
 with pointers to the substrings, and a final NULL,
@@ -140,7 +140,7 @@ making a UNIX-style argv vector.
 The array
 .I argv
 must have room for
 The array
 .I argv
 must have room for
-.IR argz_count ( argz , argz_len ") + 1"
+.IR argz_count ( argz ", " argz_len ") + 1"
 pointers.
 .LP
 .BR argz_insert ()
 pointers.
 .LP
 .BR argz_insert ()
@@ -151,7 +151,7 @@ It inserts the argument
 at position
 .I before
 into the argz vector
 at position
 .I before
 into the argz vector
-.RI ( *argz ,\ *argz_len )
+.RI ( *argz ,\  *argz_len )
 and updates
 .I *argz
 and
 and updates
 .I *argz
 and
@@ -203,3 +203,12 @@ Argz vectors without a terminating null byte may lead to
 Segmentation Faults.
 .SH SEE ALSO
 .BR envz_add (3)
 Segmentation Faults.
 .SH SEE ALSO
 .BR envz_add (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.