Searched defs:src (Results 1 - 25 of 67) sorted by relevance

123

/bionic/libc/bionic/
H A Dstrxfrm_l.cpp31 size_t strxfrm_l(char *dest, const char *src, size_t n, locale_t) { argument
32 return strxfrm(dest, src, n);
H A Dmemcpy.cpp35 void* memcpy(void* dst, const void* src, size_t n) { argument
36 bcopy(src, dst, n);
H A D__memcpy_chk.cpp45 extern "C" void* __memcpy_chk(void* dest, const void* src, argument
52 return memcpy(dest, src, copy_amount);
H A D__memmove_chk.cpp46 extern "C" void* __memmove_chk (void* dest, const void* src, argument
53 return memmove(dest, src, len);
H A D__stpcpy_chk.cpp46 extern "C" char* __stpcpy_chk(char* dest, const char* src, size_t dest_len) { argument
47 // TODO: optimize so we don't scan src twice.
48 size_t src_len = strlen(src) + 1;
54 return stpcpy(dest, src);
H A D__strcat_chk.cpp44 extern "C" char* __strcat_chk(char* __restrict dest, const char* __restrict src, argument
52 while ((*dest++ = *src++) != '\0') {
H A D__strcpy_chk.cpp46 extern "C" char* __strcpy_chk(char* dest, const char* src, size_t dest_len) { argument
47 // TODO: optimize so we don't scan src twice.
48 size_t src_len = strlen(src) + 1;
54 return strcpy(dest, src);
H A D__strlcat_chk.cpp47 extern "C" size_t __strlcat_chk(char* dest, const char* src, argument
53 return strlcat(dest, src, supplied_size);
H A D__strlcpy_chk.cpp47 extern "C" size_t __strlcpy_chk(char* dest, const char* src, argument
53 return strlcpy(dest, src, supplied_size);
H A D__strncat_chk.cpp44 extern "C" char* __strncat_chk(char* __restrict dest, const char* __restrict src, argument
54 while (*src != '\0') {
55 *d++ = *src++;
H A D__stpncpy_chk.cpp46 extern "C" char* __stpncpy_chk(char* __restrict dest, const char* __restrict src, argument
53 return stpncpy(dest, src, len);
60 * sure we don't read beyond the end of "src". The code for this is
62 * how much we read from "src" at the end of the copy operation.
64 extern "C" char* __stpncpy_chk2(char* __restrict dst, const char* __restrict src, argument
73 const char* s = src;
85 size_t s_copy_len = static_cast<size_t>(s - src);
H A D__strncpy_chk.cpp46 extern "C" char* __strncpy_chk(char* __restrict dest, const char* __restrict src, argument
53 return strncpy(dest, src, len);
60 * sure we don't read beyond the end of "src". The code for this is
62 * how much we read from "src" at the end of the copy operation.
64 extern "C" char* __strncpy_chk2(char* __restrict dst, const char* __restrict src, argument
73 const char* s = src;
85 size_t s_copy_len = static_cast<size_t>(s - src);
/bionic/libc/upstream-openbsd/lib/libc/locale/
H A Dwcsxfrm.c37 wcsxfrm(wchar_t *dest, const wchar_t *src, size_t n) argument
40 return wcslen(src);
41 return wcslcpy(dest, src, n);
/bionic/libc/upstream-freebsd/lib/libc/string/
H A Dwcpncpy.c33 wcpncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument
36 for (; n--; dst++, src++) {
37 if (!(*dst = *src)) {
H A Dwcsncpy.c44 * Copy src to dst, truncating or null-padding to always copy n bytes.
48 wcsncpy(wchar_t * __restrict dst, const wchar_t * __restrict src, size_t n) argument
52 const wchar_t *s = src;
H A Dwcslcat.c42 * Appends src to string dst of size siz (unlike wcsncat, siz is the
45 * Returns wcslen(initial dst) + wcslen(src); if retval >= siz,
49 wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) argument
52 const wchar_t *s = src;
73 return(dlen + (s - src)); /* count does not include NUL */
/bionic/libc/dns/nameser/
H A Dns_netint.c36 ns_get16(const u_char *src) { argument
39 NS_GET16(dst, src);
44 ns_get32(const u_char *src) { argument
47 NS_GET32(dst, src);
52 ns_put16(uint16_t src, u_char *dst) { argument
53 NS_PUT16(src, dst);
57 ns_put32(uint32_t src, u_char *dst) { argument
58 NS_PUT32(src, dst);
/bionic/libc/upstream-netbsd/lib/libc/string/
H A Dstrxfrm.c48 * Transform src, storing the result in dst, such that
53 strxfrm(char *dst, const char *src, size_t n) argument
57 _DIAGASSERT(src != NULL);
62 srclen = strlen(src);
66 (void)memcpy(dst, src, copysize);
/bionic/libc/upstream-openbsd/lib/libc/string/
H A Dstpncpy.c38 stpncpy(char *dst, const char *src, size_t n) argument
42 const char *s = src;
H A Dstrlcpy.c23 * Copy src to string dst of size siz. At most siz-1 characters
25 * Returns strlen(src); if retval >= siz, truncation occurred.
28 strlcpy(char *dst, const char *src, size_t siz) argument
31 const char *s = src;
42 /* Not enough room in dst, add NUL and traverse rest of src */
50 return(s - src - 1); /* count does not include NUL */
H A Dstrncat.c37 * Concatenate src on the end of dst. At most strlen(dst)+n+1 bytes
41 strncat(char *dst, const char *src, size_t n) argument
45 const char *s = src;
H A Dstrncpy.c38 * Copy src to dst, truncating or null-padding to always copy n bytes.
42 strncpy(char *dst, const char *src, size_t n) argument
46 const char *s = src;
H A Dwcslcpy.c24 * Copy src to string dst of size siz. At most siz-1 characters
26 * Returns wcslen(src); if retval >= siz, truncation occurred.
29 wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) argument
32 const wchar_t *s = src;
43 /* Not enough room in dst, add NUL and traverse rest of src */
51 return(s - src - 1); /* count does not include NUL */
H A Dstrlcat.c23 * Appends src to string dst of size siz (unlike strncat, siz is the
26 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
30 strlcat(char *dst, const char *src, size_t siz) argument
33 const char *s = src;
54 return(dlen + (s - src)); /* count does not include NUL */
/bionic/benchmarks/
H A Dstring_benchmark.cpp31 char* src = new char[nbytes]; char* dst = new char[nbytes]; local
32 memset(src, 'x', nbytes);
38 c += memcmp(dst, src, nbytes);
43 delete[] src;
50 char* src = new char[nbytes]; char* dst = new char[nbytes]; local
51 memset(src, 'x', nbytes);
55 memcpy(dst, src, nbytes);
60 delete[] src;

Completed in 128 milliseconds

123