HomeSort by relevance Sort by last modified time
    Searched refs:siz (Results 1 - 25 of 40) sorted by null

1 2

  /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);
strlcpy.c 23 * 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)
32 size_t n = siz;
44 if (siz != 0)
wcslcpy.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 wcslen(src); if retval >= siz, truncation occurred.
29 wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz)
33 size_t n = siz;
45 if (siz != 0)
strlcat.c 23 * 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)
34 size_t n = siz;
41 n = siz - dlen;
  /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/chromium_org/third_party/libevent/
strlcpy.c 44 * Copy src to string dst of size siz. At most siz-1 characters
45 * will be copied. Always NUL terminates (unless siz == 0).
46 * Returns strlen(src); if retval >= siz, truncation occurred.
49 _event_strlcpy(dst, src, siz)
52 size_t siz;
56 register size_t n = siz;
68 if (siz != 0)
strlcpy-internal.h 14 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)
regex_impl.h 102 size_t llvm_strlcpy(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)
  /external/openssl/crypto/buffer/
buffer.h 89 char * BUF_strndup(const char *str, size_t siz);
90 void * BUF_memdup(const void *data, size_t siz);
91 void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);
94 size_t BUF_strlcpy(char *dst,const char *src,size_t siz);
95 size_t BUF_strlcat(char *dst,const char *src,size_t siz);
buf_str.c 69 char *BUF_strndup(const char *str, size_t siz)
75 ret=OPENSSL_malloc(siz+1);
81 BUF_strlcpy(ret,str,siz+1);
85 void *BUF_memdup(const void *data, size_t siz)
91 ret=OPENSSL_malloc(siz);
97 return memcpy(ret, data, siz);
  /external/openssl/include/openssl/
buffer.h 89 char * BUF_strndup(const char *str, size_t siz);
90 void * BUF_memdup(const void *data, size_t siz);
91 void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);
94 size_t BUF_strlcpy(char *dst,const char *src,size_t siz);
95 size_t BUF_strlcat(char *dst,const char *src,size_t siz);
  /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;
  /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...]
  /external/chromium_org/third_party/re2/util/
benchmark.cc 66 static void runN(Benchmark *b, int n, int siz) {
74 b->fnr(n, siz);
95 void RunBench(Benchmark* b, int nthread, int siz) {
104 runN(b, n, siz);
114 runN(b, n, siz);
124 if(siz >= (1<<20))
125 snprintf(suf, sizeof suf, "/%dM", siz/(1<<20));
126 else if(siz >= (1<<10))
127 snprintf(suf, sizeof suf, "/%dK", siz/(1<<10));
129 snprintf(suf, sizeof suf, "/%d", siz);
    [all...]
  /external/llvm/tools/llvm-c-test/
disassemble.c 36 static void do_disassemble(const char *triple, unsigned char *buf, int siz) {
47 while (pos < siz) {
48 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline,
  /external/chromium_org/third_party/hwcplus/src/
hwcplus_util.c 24 size_t strlcpy(char* dst, const char* src, size_t siz) {
27 size_t n = siz;
39 if (siz != 0)
  /external/compiler-rt/lib/tsan/tests/unit/
tsan_sync_test.cc 26 EXPECT_EQ(mb->siz, 1 * sizeof(u64));
41 EXPECT_EQ(mb1->siz, 1 * sizeof(u64));
43 EXPECT_EQ(mb2->siz, 3 * sizeof(u64));
92 EXPECT_EQ(mb1->siz, 3 * sizeof(u64));
95 EXPECT_EQ(mb2->siz, 1 * sizeof(u64));
  /external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
sctp_sha1.c 48 sctp_sha1_update(struct sctp_sha1_context *ctx, const unsigned char *ptr, unsigned int siz)
50 PK11_DigestOp(ctx->pk11_ctx, ptr, siz);
71 sctp_sha1_update(struct sctp_sha1_context *ctx, const unsigned char *ptr, unsigned int siz)
73 SHA1_Update(&ctx->sha_ctx, ptr, (unsigned long)siz);
196 sctp_sha1_update(struct sctp_sha1_context *ctx, const unsigned char *ptr, unsigned int siz)
200 number_left = siz;
  /bionic/libc/dns/nameser/
ns_print.c 591 size_t siz; local
601 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
602 if (siz > sizeof(base64_cert) * 3/4) {
608 base64_cert, siz);
889 unsigned int siz; local
893 siz = (int)(edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
894 if (siz > sizeof(base64_dhcid) * 3/4) {
899 base64_dhcid, siz);
926 unsigned int siz; local
986 siz = (int)(edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 *
1020 unsigned int siz; local
    [all...]
  /external/compiler-rt/lib/tsan/rtl/
tsan_defs.h 181 u64 siz; member in struct:__tsan::MBlock
tsan_sync.cc 61 b->siz = sz;
73 uptr sz = RoundUpTo(b->siz, kMetaShadowCell);

Completed in 975 milliseconds

1 2