@@ -67,51 +67,51 @@ typedef int error_t;
67
67
#endif
68
68
69
69
/* Make a '\0' separated arg vector from a unix argv vector, returning it in
70
- ARGZ, and the total length in LEN. If a memory allocation error occurs,
71
- ENOMEM is returned, otherwise 0. The result can be destroyed using free. */
70
+ ARGZ, and the total length in LEN. If a memory allocation error occurs,
71
+ ENOMEM is returned, otherwise 0. The result can be destroyed using free. */
72
72
extern error_t __argz_create (char * __const __argv [], char * * __restrict __argz ,
73
73
size_t * __restrict __len );
74
74
extern error_t argz_create (char * __const __argv [], char * * __restrict __argz ,
75
75
size_t * __restrict __len );
76
76
77
77
/* Make a '\0' separated arg vector from a SEP separated list in
78
- STRING, returning it in ARGZ, and the total length in LEN. If a
78
+ STRING, returning it in ARGZ, and the total length in LEN. If a
79
79
memory allocation error occurs, ENOMEM is returned, otherwise 0.
80
- The result can be destroyed using free. */
80
+ The result can be destroyed using free. */
81
81
extern error_t __argz_create_sep (__const char * __restrict __string ,
82
82
int __sep , char * * __restrict __argz ,
83
83
size_t * __restrict __len );
84
84
extern error_t argz_create_sep (__const char * __restrict __string ,
85
85
int __sep , char * * __restrict __argz ,
86
86
size_t * __restrict __len );
87
87
88
- /* Returns the number of strings in ARGZ. */
88
+ /* Returns the number of strings in ARGZ. */
89
89
extern size_t __argz_count (__const char * __argz , size_t __len )
90
90
__attribute_pure__ ;
91
91
extern size_t argz_count (__const char * __argz , size_t __len )
92
92
__attribute_pure__ ;
93
93
94
94
/* Puts pointers to each string in ARGZ into ARGV, which must be large enough
95
- to hold them all. */
95
+ to hold them all. */
96
96
extern void __argz_extract (__const char * __restrict __argz , size_t __len ,
97
97
char * * __restrict __argv );
98
98
extern void argz_extract (__const char * __restrict __argz , size_t __len ,
99
99
char * * __restrict __argv );
100
100
101
101
/* Make '\0' separated arg vector ARGZ printable by converting all the '\0's
102
- except the last into the character SEP. */
102
+ except the last into the character SEP. */
103
103
extern void __argz_stringify (char * __argz , size_t __len , int __sep );
104
104
extern void argz_stringify (char * __argz , size_t __len , int __sep );
105
105
106
- /* Append BUF, of length BUF_LEN to the argz vector in ARGZ & ARGZ_LEN. */
106
+ /* Append BUF, of length BUF_LEN to the argz vector in ARGZ & ARGZ_LEN. */
107
107
extern error_t __argz_append (char * * __restrict __argz ,
108
108
size_t * __restrict __argz_len ,
109
109
__const char * __restrict __buf , size_t _buf_len );
110
110
extern error_t argz_append (char * * __restrict __argz ,
111
111
size_t * __restrict __argz_len ,
112
112
__const char * __restrict __buf , size_t __buf_len );
113
113
114
- /* Append STR to the argz vector in ARGZ & ARGZ_LEN. */
114
+ /* Append STR to the argz vector in ARGZ & ARGZ_LEN. */
115
115
extern error_t __argz_add (char * * __restrict __argz ,
116
116
size_t * __restrict __argz_len ,
117
117
__const char * __restrict __str );
@@ -120,15 +120,15 @@ extern error_t argz_add (char **__restrict __argz,
120
120
__const char * __restrict __str );
121
121
122
122
/* Append SEP separated list in STRING to the argz vector in ARGZ &
123
- ARGZ_LEN. */
123
+ ARGZ_LEN. */
124
124
extern error_t __argz_add_sep (char * * __restrict __argz ,
125
125
size_t * __restrict __argz_len ,
126
126
__const char * __restrict __string , int __delim );
127
127
extern error_t argz_add_sep (char * * __restrict __argz ,
128
128
size_t * __restrict __argz_len ,
129
129
__const char * __restrict __string , int __delim );
130
130
131
- /* Delete ENTRY from ARGZ & ARGZ_LEN, if it appears there. */
131
+ /* Delete ENTRY from ARGZ & ARGZ_LEN, if it appears there. */
132
132
extern void __argz_delete (char * * __restrict __argz ,
133
133
size_t * __restrict __argz_len ,
134
134
char * __restrict __entry );
@@ -139,9 +139,9 @@ extern void argz_delete (char **__restrict __argz,
139
139
/* Insert ENTRY into ARGZ & ARGZ_LEN before BEFORE, which should be an
140
140
existing entry in ARGZ; if BEFORE is NULL, ENTRY is appended to the end.
141
141
Since ARGZ's first entry is the same as ARGZ, argz_insert (ARGZ, ARGZ_LEN,
142
- ARGZ, ENTRY) will insert ENTRY at the beginning of ARGZ. If BEFORE is not
142
+ ARGZ, ENTRY) will insert ENTRY at the beginning of ARGZ. If BEFORE is not
143
143
in ARGZ, EINVAL is returned, else if memory can't be allocated for the new
144
- ARGZ, ENOMEM is returned, else 0. */
144
+ ARGZ, ENOMEM is returned, else 0. */
145
145
extern error_t __argz_insert (char * * __restrict __argz ,
146
146
size_t * __restrict __argz_len ,
147
147
char * __restrict __before ,
@@ -152,8 +152,8 @@ extern error_t argz_insert (char **__restrict __argz,
152
152
__const char * __restrict __entry );
153
153
154
154
/* Replace any occurrences of the string STR in ARGZ with WITH, reallocating
155
- ARGZ as necessary. If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
156
- incremented by number of replacements performed. */
155
+ ARGZ as necessary. If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
156
+ incremented by number of replacements performed. */
157
157
extern error_t __argz_replace (char * * __restrict __argz ,
158
158
size_t * __restrict __argz_len ,
159
159
__const char * __restrict __str ,
@@ -166,7 +166,7 @@ extern error_t argz_replace (char **__restrict __argz,
166
166
unsigned int * __restrict __replace_count );
167
167
168
168
/* Returns the next entry in ARGZ & ARGZ_LEN after ENTRY, or NULL if there
169
- are no more. If entry is NULL, then the first entry is returned. This
169
+ are no more. If entry is NULL, then the first entry is returned. This
170
170
behavior allows two convenient iteration styles:
171
171
172
172
char *entry = 0;
0 commit comments