/third_party/musl/libc-test/src/functionalext/supplement/string/ |
H A D | strndup.c | 22 * @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 D | mdev.c | 117 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 D | config.h | 359 /* 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 D | util-strings.c | 135 char *copy = strndup(word, l); in strv_from_string() 253 return strndup(base, suffix-base); in trunkname()
|
/third_party/backends/lib/ |
H A D | strndup.c | 28 strndup (const char * s, size_t n) in strndup() function
|
/third_party/musl/src/string/ |
H A D | strndup.c | 4 char *strndup(const char *s, size_t n) in strndup() function
|
/third_party/musl/porting/liteos_a/kernel/src/string/ |
H A D | strndup.c | 4 char *strndup(const char *s, size_t n) in strndup() function
|
/third_party/mesa3d/src/util/ |
H A D | strndup.h | 37 strndup(const char *str, size_t max) in strndup() function
|
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/ |
H A D | proxy.c | 605 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 D | string.c | 38 {char*(*p)(const char*,size_t) = strndup;} in f()
|
/third_party/selinux/libselinux/src/ |
H A D | get_default_type.c | 65 t = strndup(ptr, strlen(buf) - len - 1); in find_default_type()
|
H A D | label_support.c | 47 *entry = strndup(tmp_buf, *len); in read_spec_entry()
|
H A D | context.c | 71 n->component[i] = strndup(tok, p - tok); in context_new()
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | string.h | 69 char *strndup (const char *, size_t);
|
/third_party/musl/porting/linux/user/include/ |
H A D | string.h | 71 char *strndup (const char *, size_t);
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | string.h | 69 char *strndup (const char *, size_t);
|
/third_party/musl/include/ |
H A D | string.h | 71 char *strndup (const char *, size_t);
|
/third_party/selinux/libsepol/utils/ |
H A D | sepol_check_access.c | 61 tmp = strndup(permlist, delim - permlist); in main()
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | string.h | 69 char *strndup (const char *, size_t);
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | string.h | 71 char *strndup (const char *, size_t);
|
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | structures.c | 586 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 D | gl_nir_lower_xfb_varying.c | 29 #include "util/strndup.h" 46 return strndup(name, name_size); in get_field_name()
|
/third_party/selinux/libsepol/src/ |
H A D | util.c | 230 *str = strndup(tmp_buf, *len); in tokenize_str()
|
/third_party/libcoap/examples/ |
H A D | coap-server.c | 33 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 D | libevent-client.c | 33 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()
|