/bionic/libc/upstream-openbsd/lib/libc/string/ |
strdup.c | 41 size_t siz; local 44 siz = strlen(str) + 1; 45 if ((copy = malloc(siz)) == NULL) 47 (void)memcpy(copy, str, siz);
|
/external/mksh/src/ |
strlcpy.c | 24 * Copy src to string dst of size siz. At most siz-1 characters 25 * will be copied. Always NUL terminates (unless siz == 0). 26 * Returns strlen(src); if retval >= siz, truncation occurred. 30 strlcpy(char *dst, const char *src, size_t siz) 34 if (siz == 0) 38 while (--siz && (*dst++ = *s++)) 42 if (siz == 0) { 43 /* safe to NUL-terminate dst since we copied <= siz-1 chars */
|
/external/libevent/ |
strlcpy.c | 43 * Copy src to string dst of size siz. At most siz-1 characters 44 * will be copied. Always NUL terminates (unless siz == 0). 45 * Returns strlen(src); if retval >= siz, truncation occurred. 48 event_strlcpy_(dst, src, siz) 51 size_t siz; 55 register size_t n = siz; 67 if (siz != 0)
|
strlcpy-internal.h | 13 size_t event_strlcpy_(char *dst, const char *src, size_t siz);
|
/external/llvm/lib/Support/ |
regstrlcpy.c | 24 * Copy src to string dst of size siz. At most siz-1 characters 25 * will be copied. Always NUL terminates (unless siz == 0). 26 * Returns strlen(src); if retval >= siz, truncation occurred. 29 llvm_strlcpy(char *dst, const char *src, size_t siz) 33 size_t n = siz; 45 if (siz != 0)
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
regstrlcpy.c | 24 * Copy src to string dst of size siz. At most siz-1 characters 25 * will be copied. Always NUL terminates (unless siz == 0). 26 * Returns strlen(src); if retval >= siz, truncation occurred. 29 llvm_strlcpy(char *dst, const char *src, size_t siz) 33 size_t n = siz; 45 if (siz != 0)
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
regstrlcpy.c | 24 * Copy src to string dst of size siz. At most siz-1 characters 25 * will be copied. Always NUL terminates (unless siz == 0). 26 * Returns strlen(src); if retval >= siz, truncation occurred. 29 llvm_strlcpy(char *dst, const char *src, size_t siz) 33 size_t n = siz; 45 if (siz != 0)
|
/external/tcpdump/missing/ |
strlcpy.c | 42 * 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 strlen(src); if retval >= siz, truncation occurred. 47 strlcpy(char *dst, const char *src, size_t siz) 51 register size_t n = siz; 63 if (siz != 0)
|
strlcat.c | 42 * Appends src to string dst of size siz (unlike strncat, 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 strlen(src); if retval >= siz, truncation occurred. 48 strlcat(char *dst, const char *src, size_t siz) 52 register size_t n = siz; 59 n = siz - dlen;
|
/system/bt/osi/src/ |
compat.cc | 60 * Copy src to string dst of size siz. At most siz-1 characters 61 * will be copied. Always NUL terminates (unless siz == 0). 62 * Returns strlen(src); if retval >= siz, truncation occurred. 64 size_t strlcpy(char* dst, const char* src, size_t siz) { 67 size_t n = siz; 78 if (siz != 0) *d = '\0'; /* NUL-terminate dst */ 89 * Appends src to string dst of size siz (unlike strncat, siz is the 90 * full size of dst, not space left). At most siz-1 character [all...] |
/system/core/libcutils/ |
strlcpy.c | 28 * Copy src to string dst of size siz. At most siz-1 characters 29 * will be copied. Always NUL terminates (unless siz == 0). 30 * Returns strlen(src); if retval >= siz, truncation occurred. 33 strlcpy(char *dst, const char *src, size_t siz) 37 size_t n = siz; 49 if (siz != 0)
|
/system/bt/osi/include/ |
compat.h | 31 /* Copy src to string dst of size siz. */ 32 size_t strlcpy(char* dst, const char* src, size_t siz); 34 /* Appends src to string dst of size siz. */ 35 size_t strlcat(char* dst, const char* src, size_t siz);
|
/external/libedit/src/ |
strlcat.c | 38 * Appends src to string dst of size siz (unlike strncat, siz is the 39 * full size of dst, not space left). At most siz-1 characters 40 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). 41 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 42 * If retval >= siz, truncation occurred. 45 strlcat(char *dst, const char *src, size_t siz) 50 size_t n = siz; 60 n = siz - dlen; 79 * Find length of string in dst (maxing out at siz) [all...] |
strlcpy.c | 38 * Copy src to string dst of size siz. At most siz-1 characters 39 * will be copied. Always NUL terminates (unless siz == 0). 40 * Returns strlen(src); if retval >= siz, truncation occurred. 43 strlcpy(char *dst, const char *src, size_t siz) 47 size_t n = siz; 62 if (siz != 0)
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
wcslcat.c | 42 * 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) 53 size_t n = siz; 60 n = siz - dlen;
|
/device/linaro/bootloader/edk2/StdLib/LibC/String/ |
strlcat.c | 50 * Appends src to string dst of size siz (unlike strncat, siz is the
51 * full size of dst, not space left). At most siz-1 characters
52 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
53 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
54 * If retval >= siz, truncation occurred.
57 strlcat(char *dst, const char *src, size_t siz)
61 size_t n = siz;
71 n = siz - dlen;
|
strlcpy.c | 50 * Copy src to string dst of size siz. At most siz-1 characters
51 * will be copied. Always NUL terminates (unless siz == 0).
52 * Returns strlen(src); if retval >= siz, truncation occurred.
55 strlcpy(char *dst, const char *src, size_t siz)
59 size_t n = siz;
74 if (siz != 0)
|
/external/ipsec-tools/src/racoon/ |
logger.h | 39 int siz; member in struct:log
|
logger.c | 64 log_open(siz, fname) 65 size_t siz; 75 p->buf = (char **)racoon_malloc(sizeof(char *) * siz); 80 memset(p->buf, 0, sizeof(char *) * siz); 82 p->tbuf = (time_t *)racoon_malloc(sizeof(time_t *) * siz); 88 memset(p->tbuf, 0, sizeof(time_t *) * siz); 90 p->siz = siz; 113 p->head %= p->siz; 194 for (i = 0; i < p->siz; i++) [all...] |
/prebuilts/go/darwin-x86/src/cmd/internal/obj/ |
data.go | 42 siz := int(lsiz) 43 if int64(siz) != lsiz { 46 if len(s.P) >= siz { 51 for cap(s.P) < siz { 54 s.P = s.P[:siz] 71 // prepwrite prepares to write data of size siz into s at offset off. 72 func (s *LSym) prepwrite(ctxt *Link, off int64, siz int) { 73 if off < 0 || siz < 0 || off >= 1<<30 { 74 ctxt.Diag("prepwrite: bad off=%d siz=%d s=%v", off, siz, s [all...] |
/prebuilts/go/linux-x86/src/cmd/internal/obj/ |
data.go | 42 siz := int(lsiz) 43 if int64(siz) != lsiz { 46 if len(s.P) >= siz { 51 for cap(s.P) < siz { 54 s.P = s.P[:siz] 71 // prepwrite prepares to write data of size siz into s at offset off. 72 func (s *LSym) prepwrite(ctxt *Link, off int64, siz int) { 73 if off < 0 || siz < 0 || off >= 1<<30 { 74 ctxt.Diag("prepwrite: bad off=%d siz=%d s=%v", off, siz, s [all...] |
/frameworks/base/tests/Camera2Tests/CameraToo/tests/src/com/example/android/camera2/cameratoo/ |
CameraTooTest.java | 107 Size[] siz = local 110 assertOptimalSize(siz, 0, 0, empty); 112 assertOptimalSize(siz, 1, 0, fatAndFlat); 113 assertOptimalSize(siz, 0, 1, tallAndThin); 115 assertOptimalSize(siz, 4, 4, smallSquare); 116 assertOptimalSize(siz, 1, 1, smallSquare); 117 assertOptimalSize(siz, 2, 1, smallSquare); 118 assertOptimalSize(siz, 1, 2, smallSquare); 119 assertOptimalSize(siz, 3, 4, smallSquare); 120 assertOptimalSize(siz, 4, 3, smallSquare) [all...] |
/external/llvm/tools/llvm-c-test/ |
disassemble.c | 38 unsigned char *buf, int siz) { 50 while (pos < siz) { 51 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline,
|
/toolchain/binutils/binutils-2.27/gas/config/ |
te-vms.c | 114 long *siz, 160 if (siz) 161 *siz = 0; 270 if (siz) *siz = (512 * 65536 * recattr.fat$w_efblkh) + 325 if (siz) 326 *siz = buff.st_size; 356 long siz; local 358 if (vms_file_stats_name (dirname, filename, 0, &siz, 0, 0) == 0) 359 return siz; [all...] |
/external/wpa_supplicant_8/src/crypto/ |
random.c | 174 size_t siz, i; local 179 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 180 for (i = 0; i < siz; i++) 182 left -= siz; 190 size_t siz, i; local 199 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left; 200 for (i = 0; i < siz; i++) 202 left -= siz;
|