tests: use xmalloc to allocate implementation array
[glibc.git] / include / argz.h
blobe081b2aceb5c87c1e66003be53c3ec47ead46a1e
1 #ifndef _ARGZ_H
3 #include <string/argz.h>
5 # ifndef _ISOMAC
7 extern error_t __argz_create_sep (const char *__restrict __string,
8 int __sep, char **__restrict __argz,
9 size_t *__restrict __len)
10 __THROW attribute_hidden;
11 extern error_t __argz_append (char **__restrict __argz,
12 size_t *__restrict __argz_len,
13 const char *__restrict __buf, size_t __buf_len)
14 __THROW attribute_hidden;
15 extern error_t __argz_add (char **__restrict __argz,
16 size_t *__restrict __argz_len,
17 const char *__restrict __str)
18 __THROW attribute_hidden;
19 extern error_t __argz_add_sep (char **__restrict __argz,
20 size_t *__restrict __argz_len,
21 const char *__restrict __string, int __delim)
22 __THROW attribute_hidden;
23 extern void __argz_delete (char **__restrict __argz,
24 size_t *__restrict __argz_len,
25 char *__restrict __entry)
26 __THROW attribute_hidden;
27 extern error_t __argz_insert (char **__restrict __argz,
28 size_t *__restrict __argz_len,
29 char *__restrict __before,
30 const char *__restrict __entry)
31 __THROW attribute_hidden;
32 extern error_t __argz_replace (char **__restrict __argz,
33 size_t *__restrict __argz_len,
34 const char *__restrict __str,
35 const char *__restrict __with,
36 unsigned int *__restrict __replace_count)
37 attribute_hidden;
39 libc_hidden_proto (argz_delete)
40 libc_hidden_proto (__argz_count)
41 libc_hidden_proto (__argz_stringify)
42 libc_hidden_proto (argz_next)
43 libc_hidden_proto (__argz_next)
45 # endif /* !_ISOMAC */
46 #endif