Home
last modified time | relevance | path

Searched refs:argz_len (Results 1 – 14 of 14) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libc/include/
Dargz.h18 error_t argz_create (char *const argv[], char **argz, size_t *argz_len);
19 error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len);
20 size_t argz_count (const char *argz, size_t argz_len);
21 void argz_extract (char *argz, size_t argz_len, char **argv);
22 void argz_stringify (char *argz, size_t argz_len, int sep);
23 error_t argz_add (char **argz, size_t *argz_len, const char *str);
24 error_t argz_add_sep (char **argz, size_t *argz_len, const char *str, int sep);
25 error_t argz_append (char **argz, size_t *argz_len, const char *buf, size_t buf_len);
26 error_t argz_delete (char **argz, size_t *argz_len, char *entry);
27 error_t argz_insert (char **argz, size_t *argz_len, char *before, const char *entry);
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/argz/
Dargz_insert.c17 size_t *argz_len, in argz_insert() argument
25 return argz_add(argz, argz_len, entry); in argz_insert()
27 if (before < *argz || before >= *argz + *argz_len) in argz_insert()
38 if(!(*argz = (char *)realloc(*argz, *argz_len + len))) in argz_insert()
41 memmove(*argz + delta + len, *argz + delta, *argz_len - delta); in argz_insert()
44 *argz_len += len; in argz_insert()
Dargz_delete.c15 size_t *argz_len, in argz_delete() argument
26 memmove(moveto, entry, *argz + *argz_len - entry); in argz_delete()
28 *argz_len -= len; in argz_delete()
30 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_delete()
33 if (*argz_len <= 0) in argz_delete()
Dargz_replace.c17 size_t *argz_len, in argz_replace() argument
27 size_t buf_len = *argz_len; in argz_replace()
35 new_argz_len = *argz_len; in argz_replace()
52 buf_len = *argz_len; in argz_replace()
71 memcpy(new_argz_iter, last_iter, *argz + *argz_len - last_iter); in argz_replace()
82 *argz_len = new_argz_len; in argz_replace()
84 if (*argz_len == 0) in argz_replace()
Dargz_append.c15 size_t *argz_len, in argz_append() argument
21 size_t last = *argz_len; in argz_append()
23 *argz_len += buf_len; in argz_append()
25 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_append()
Dargz_add.c15 size_t *argz_len, in argz_add() argument
19 size_t last = *argz_len; in argz_add()
25 *argz_len += len_to_add; in argz_add()
27 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_add()
Dargz_add_sep.c15 size_t *argz_len, in argz_add_sep() argument
21 size_t last = *argz_len; in argz_add_sep()
27 *argz_len += str_argz_len; in argz_add_sep()
29 if(!(*argz = (char *)realloc(*argz, *argz_len))) in argz_add_sep()
Dargz_extract.c13 size_t argz_len, in argz_extract() argument
18 const size_t count = argz_count(argz, argz_len); in argz_extract()
20 if (argz_len > 1) in argz_extract()
21 for (i = argz_len - 2; i > 0; i--) in argz_extract()
Dargz_create.c16 size_t *argz_len) in argz_create() argument
23 *argz_len = 0; in argz_create()
33 *argz_len += (strlen(argv[argc]) + 1); in argz_create()
38 if(!(*argz = (char *)malloc(*argz_len))) in argz_create()
Dargz_stringify.c14 size_t argz_len, in argz_stringify() argument
20 if (argz_len > 1) in argz_stringify()
21 for (i = 0; i < argz_len - 1; i++) in argz_stringify()
Dargz_next.c15 size_t argz_len, in argz_next() argument
24 if (entry >= argz + argz_len) in argz_next()
31 if (argz_len > 0) in argz_next()
Dargz_create_sep.c18 size_t *argz_len) in argz_create_sep() argument
29 *argz_len = 0; in argz_create_sep()
46 *argz_len += (len + 1); in argz_create_sep()
52 if(!(*argz = (char *)malloc(*argz_len))) in argz_create_sep()
Dargz_count.c14 size_t argz_len) in argz_count() argument
19 for (i = 0; i < argz_len; i++) in argz_count()
/picolibc-3.7.0-3.6.0/newlib/
DChangeLog-20159998 * libc/argz/argz_extract.c (argz_extract): Check argz_len before
10316 * libc/argz/argz_create_sep.c (argz_create_sep): Initialize *argz_len