Home
last modified time | relevance | path

Searched refs:xstrndup (Results 1 - 13 of 13) sorted by relevance

/third_party/elfutils/lib/
H A Dxstrndup.c40 xstrndup (const char *string, size_t n) in xstrndup() function
H A Dlibeu.h40 extern char *xstrndup (const char *, size_t) __attribute__ ((__malloc__));
/third_party/toybox/lib/
H A Dcommas.c91 char *opt = comma_iterate(&scanlist, &i), *s = xstrndup(opt, i); in comma_scanall()
H A Dxwrap.c96 char *xstrndup(char *s, size_t n) in xstrndup() function
100 if (!ret) error_exit("xstrndup"); in xstrndup()
108 return xstrndup(s, strlen(s)); in xstrdup()
H A Dlib.h132 char *xstrndup(char *s, size_t n);
/third_party/toybox/toys/lsb/
H A Dgzip.c134 else if ((out = strend(in, ".gz"))>in) out = xstrndup(in, out-in); in do_gzip()
/third_party/elfutils/src/
H A Dstrings.c384 *unprinted = xstrndup ((const char *) start, curlen); in process_chunk_mb()
447 *unprinted = xstrndup ((const char *) start, curlen); in process_chunk()
/third_party/toybox/toys/pending/
H A Dsh.c375 ss = xstrndup(ss, (s-ss)-1); in run_command()
788 arg->v[arg->c] = xstrndup(start, strlen(start)); in parse_line()
825 s = arg->v[arg->c] = xstrndup(start, end-start); in parse_line()
H A Dwget.c259 return xstrndup(redir, stridx(redir, '\r')); in wget_redirect()
H A Ddhcpd.c1089 var = xstrndup((char*) optptr, len); in get_optval()
/third_party/toybox/toys/posix/
H A Dsort.c141 str = xstrndup(str+start, end-start); in get_key_data()
H A Dtar.c655 TT.hdr.uname = xstrndup(TT.owner ? TT.owner : tar.uname, sizeof(tar.uname)); in unpack_tar()
656 TT.hdr.gname = xstrndup(TT.group ? TT.group : tar.gname, sizeof(tar.gname)); in unpack_tar()
671 TT.hdr.link_target = xstrndup(tar.link, sizeof(tar.link)); in unpack_tar()
/third_party/toybox/porting/liteos_a/lib/
H A Dlib.h127 char *xstrndup(char *s, size_t n);

Completed in 12 milliseconds