Searched refs:siz (Results 1 - 8 of 8) sorted by relevance

/bionic/libc/string/
H A Dstrdup.c41 size_t siz; local
44 siz = strlen(str) + 1;
45 if ((copy = malloc(siz)) == NULL)
47 (void)memcpy(copy, str, siz);
H A Dstrlcpy.c23 * Copy src to string dst of size siz. At most siz-1 characters
24 * will be copied. Always NUL terminates (unless siz == 0).
25 * Returns strlen(src); if retval >= siz, truncation occurred.
28 strlcpy(char *dst, const char *src, size_t siz) argument
32 size_t n = siz;
44 if (siz != 0)
H A Dstrlcat.c23 * Appends src to string dst of size siz (unlike strncat, siz is the
24 * full size of dst, not space left). At most siz-1 characters
25 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
26 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
27 * If retval >= siz, truncation occurred.
30 strlcat(char *dst, const char *src, size_t siz) argument
34 size_t n = siz;
41 n = siz - dlen;
/bionic/libc/upstream-freebsd/lib/libc/string/
H A Dwcslcpy.c42 * Copy src to string dst of size siz. At most siz-1 characters
43 * will be copied. Always NUL terminates (unless siz == 0).
44 * Returns wcslen(src); if retval >= siz, truncation occurred.
47 wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz) argument
51 size_t n = siz;
63 if (siz != 0)
H A Dwcslcat.c42 * Appends src to string dst of size siz (unlike wcsncat, siz is the
43 * full size of dst, not space left). At most siz-1 characters
44 * will be copied. Always NUL terminates (unless siz == 0).
45 * Returns wcslen(initial dst) + wcslen(src); if retval >= siz,
49 wcslcat(wchar_t *dst, const wchar_t *src, size_t siz) argument
53 size_t n = siz;
60 n = siz - dlen;
/bionic/libc/netbsd/nameser/
H A Dns_print.c587 unsigned int siz; local
597 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
598 if (siz > sizeof(base64_cert) * 3/4) {
604 base64_cert, siz);
/bionic/libc/netbsd/resolv/
H A Dres_query.c422 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) { argument
H A Dres_debug.c873 u_int8_t siz = 0x12; /* default = 1e2 cm = 1.00m */ local
932 siz = precsize_aton(&cp);
960 *bcp++ = siz;

Completed in 1943 milliseconds