Home
last modified time | relevance | path

Searched refs:strndup (Results 1 - 25 of 74) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/supplement/string/
H A Dstrndup.c22 * @tc.desc : Test the strndup function to copy the string according to the input parameter
28 char *result = strndup(str, 2); in strndup_0100()
30 t_error("%s strndup get result is '%s' are not 'he'\n", __func__, result); in strndup_0100()
36 * @tc.desc : Test the return value of strndup when the number of copies of the input exceeds the passed string
42 char *result = strndup(str, 12); in strndup_0200()
44 t_error("%s strndup get result is '%s' are not 'he'\n", __func__, result); in strndup_0200()
50 * @tc.desc : The return value of strndup when the number of test copies is 0
56 char *result = strndup(str, 0); in strndup_0300()
58 t_error("%s strndup get result is '%s' are not ''\n", __func__, result); in strndup_0300()
/third_party/toybox/toys/pending/
H A Dmdev.c117 char *regex = strndup(pos, end2-pos); in make_device()
148 char *str = strndup(pos, s-pos); in make_device()
159 char *str = strndup(s, end2-s); in make_device()
183 //char *name = strndup(pos, end2-pos); in make_device()
/third_party/backends/include/sane/
H A Dconfig.h359 /* Define to 1 if you have the `strndup' function. */
766 /* Prototype for strndup */
768 #define strndup sanei_strndup macro
770 char *strndup(const char * s, size_t n);
/third_party/libinput/src/
H A Dutil-strings.c135 char *copy = strndup(word, l); in strv_from_string()
253 return strndup(base, suffix-base); in trunkname()
/third_party/backends/lib/
H A Dstrndup.c28 strndup (const char * s, size_t n) in strndup() function
/third_party/musl/src/string/
H A Dstrndup.c4 char *strndup(const char *s, size_t n) in strndup() function
/third_party/musl/porting/liteos_a/kernel/src/string/
H A Dstrndup.c4 char *strndup(const char *s, size_t n) in strndup() function
/third_party/mesa3d/src/util/
H A Dstrndup.h37 strndup(const char *str, size_t max) in strndup() function
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/
H A Dproxy.c605 if(NULL == (proxy->version = strndup(line, i - pos))) in curl_header_cb()
611 if(NULL == (status = strndup(&(line[pos]), i - pos))) in curl_header_cb()
620 if(NULL == (proxy->status_msg = strndup(&(line[pos]), i - pos))) in curl_header_cb()
631 if(NULL == (name = strndup(line, i - pos))) in curl_header_cb()
654 if(NULL == (value = strndup(&(line[pos]), i - pos))) in curl_header_cb()
/third_party/musl/libc-test/src/api/
H A Dstring.c38 {char*(*p)(const char*,size_t) = strndup;} in f()
/third_party/selinux/libselinux/src/
H A Dget_default_type.c65 t = strndup(ptr, strlen(buf) - len - 1); in find_default_type()
H A Dlabel_support.c47 *entry = strndup(tmp_buf, *len); in read_spec_entry()
H A Dcontext.c71 n->component[i] = strndup(tok, p - tok); in context_new()
/third_party/musl/porting/liteos_m/user/include/
H A Dstring.h69 char *strndup (const char *, size_t);
/third_party/musl/porting/linux/user/include/
H A Dstring.h71 char *strndup (const char *, size_t);
/third_party/musl/porting/uniproton/kernel/include/
H A Dstring.h69 char *strndup (const char *, size_t);
/third_party/musl/include/
H A Dstring.h71 char *strndup (const char *, size_t);
/third_party/selinux/libsepol/utils/
H A Dsepol_check_access.c61 tmp = strndup(permlist, delim - permlist); in main()
/third_party/musl/porting/liteos_m/kernel/include/
H A Dstring.h69 char *strndup (const char *, size_t);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dstring.h71 char *strndup (const char *, size_t);
/third_party/skia/third_party/externals/microhttpd/src/microspdy/
H A Dstructures.c586 if(NULL == (name = strndup(stream + offset, name_size))) in SPDYF_name_value_from_stream()
601 if(NULL == (value = strndup(stream + offset, value_size))) in SPDYF_name_value_from_stream()
/third_party/mesa3d/src/compiler/glsl/
H A Dgl_nir_lower_xfb_varying.c29 #include "util/strndup.h"
46 return strndup(name, name_size); in get_field_name()
/third_party/selinux/libsepol/src/
H A Dutil.c230 *str = strndup(tmp_buf, *len); in tokenize_str()
/third_party/libcoap/examples/
H A Dcoap-server.c33 char *strndup(const char *s1, size_t n);
35 strndup(const char *s1, size_t n) { in strndup() function
2518 valid_psk_snis.psk_sni_list[valid_psk_snis.count].sni_match = strndup(cp, tcp-cp); in cmdline_read_psk_sni_check()
2563 valid_ids.id_list[valid_ids.count].hint_match = strndup(cp, tcp-cp); in cmdline_read_identity_check()
2655 strndup(cp, tcp-cp); in cmdline_read_pki_sni_check()
2661 strndup(cp, tcp-cp); in cmdline_read_pki_sni_check()
2664 strndup(cp, strlen(cp)); in cmdline_read_pki_sni_check()
/third_party/nghttp2/examples/
H A Dlibevent-client.c33 char *strndup(const char *s, size_t size);
584 host = strndup(&uri[u.field_data[UF_HOST].off], u.field_data[UF_HOST].len); in run()

Completed in 15 milliseconds

123