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

12

/external/bison/lib/
H A Dxstrndup.c32 char *s = strndup (string, n);
H A Dstrndup.c1 /* A replacement function, for systems that lack strndup.
26 strndup (char const *s, size_t n) function
H A Dstring.in.h400 # undef strndup macro
401 # define strndup rpl_strndup macro
403 _GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
405 _GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
408 _GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
411 _GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
413 _GL_CXXALIASWARN (strndup); variable
415 # undef strndup macro
417 _GL_WARN_ON_USE (strndup, "strndup i
[all...]
/external/clang/test/Sema/
H A Dbuiltins-gnu-mode.c9 int strndup; variable
/external/syslinux/com32/lib/
H A Dstrndup.c2 * strndup.c
8 char *strndup(const char *s, size_t n) function
/external/clang/test/Analysis/
H A Dmalloc-interprocedural.c105 char *strndup(const char *str, size_t n) { function
126 (void)strndup(0, 20); // no-warning
129 (void)strndup("hi there", n); // no-warning
132 (void)strndup("hi there", n);
H A Dtaint-generic.c25 char *strndup(const char *s, size_t n);
104 dup = strndup(s, 20);
/external/toybox/toys/pending/
H A Dmdev.c110 char *regex = strndup(pos, end2-pos);
141 char *str = strndup(pos, s-pos);
152 char *str = strndup(s, end2-s);
/external/libmojo/base/android/
H A Dbuild_info.cc76 java_exception_info_ = strndup(info.c_str(), 4096);
/external/syslinux/com32/include/
H A Dstring.h28 __extern char *strndup(const char *, size_t);
/external/clang/test/SemaCXX/
H A Dwarn-memset-bad-sizeof.cpp130 extern "C" char *strndup(const char *src, unsigned n);
145 strndup(FOO, sizeof(FOO)); // \
146 // expected-warning {{'strndup' call operates on objects of type 'const char' while the size is based on a different type 'const char *'}} expected-note{{did you mean to provide an explicit length?}}
H A Dwarn-memsize-comparison.cpp13 extern "C" char *strndup(const char *src, size_t n);
67 if (strndup(b1, sizeof(b1) != 0)) {} // \
68 expected-warning{{size argument in 'strndup' call is a comparison}} \
71 if (strndup(b1, sizeof(b1)) != 0) {}
/external/syslinux/gpxe/src/core/
H A Dstring.c338 char * strndup(const char *s, size_t n) function
354 return strndup(s, ~((size_t)0));
/external/syslinux/gpxe/src/include/
H A Dstring.h47 char * __malloc strndup(const char *s, size_t n) __nonnull;
/external/bison/darwin-lib/
H A Dstring.h712 # undef strndup
713 # define strndup rpl_strndup
715 _GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
717 _GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
720 _GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
723 _GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
725 _GL_CXXALIASWARN (strndup); variable
727 # undef strndup macro
729 _GL_WARN_ON_USE (strndup, "strndup i
[all...]
/external/bison/linux-lib/
H A Dstring.h712 # undef strndup
713 # define strndup rpl_strndup
715 _GL_FUNCDECL_RPL (strndup, char *, (char const *__string, size_t __n)
717 _GL_CXXALIAS_RPL (strndup, char *, (char const *__string, size_t __n));
720 _GL_FUNCDECL_SYS (strndup, char *, (char const *__string, size_t __n)
723 _GL_CXXALIAS_SYS (strndup, char *, (char const *__string, size_t __n));
725 _GL_CXXALIASWARN (strndup); variable
727 # undef strndup macro
729 _GL_WARN_ON_USE (strndup, "strndup i
[all...]
/external/selinux/libselinux/src/
H A Dlabel_support.c47 *entry = strndup(tmp_buf, *len);
/external/minijail/
H A Dbpf.c260 begin->label = strndup(label, MAX_BPF_LABEL_LEN);
279 begin->label = strndup(label, MAX_BPF_LABEL_LEN);
/external/libmicrohttpd/src/spdy2http/
H A Dproxy.c605 if(NULL == (proxy->version = strndup(line, i - pos)))
611 if(NULL == (status = strndup(&(line[pos]), i - pos)))
620 if(NULL == (proxy->status_msg = strndup(&(line[pos]), i - pos)))
631 if(NULL == (name = strndup(line, i - pos)))
654 if(NULL == (value = strndup(&(line[pos]), i - pos)))
/external/bison/
H A DAndroid.mk124 lib/strndup.c \
/external/libmicrohttpd/src/microspdy/
H A Dstructures.c586 if(NULL == (name = strndup(stream + offset, name_size)))
601 if(NULL == (value = strndup(stream + offset, value_size)))
/external/elfutils/libdwfl/
H A Dfind-debuginfo.c218 : strndup (file_name, file_basename - 1 - file_name));
/external/iproute2/misc/
H A Dlnstat_util.c308 file = strndup(name, colon-name);
/external/mmc-utils/
H A Dmmc.c239 (*commands)[c] = strndup(s, l);
/external/selinux/libsepol/src/
H A Dutil.c226 *str = strndup(tmp_buf, *len);

Completed in 706 milliseconds

12