Searched defs:siz (Results 1 - 25 of 31) sorted by relevance

12

/external/mksh/src/
H A Dstrlcpy.c24 * 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) argument
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/ipsec-tools/src/racoon/
H A Dlogger.h39 int siz; member in struct:log
/external/llvm/lib/Support/
H A Dregstrlcpy.c24 * 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) argument
33 size_t n = siz;
45 if (siz != 0)
/external/openssh/openbsd-compat/
H A Dstrlcpy.c28 * 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) argument
37 size_t n = siz;
49 if (siz != 0)
H A Dstrlcat.c28 * Appends src to string dst of size siz (unlike strncat, siz is the
29 * full size of dst, not space left). At most siz-1 characters
30 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
31 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
32 * If retval >= siz, truncation occurred.
35 strlcat(char *dst, const char *src, size_t siz) argument
39 size_t n = siz;
46 n = siz - dlen;
H A Dvis.c147 * Strnvis will write no more than siz-1 bytes (and will NULL terminate).
166 strnvis(char *dst, const char *src, size_t siz, int flag) argument
173 for (start = dst, end = start + siz - 1; (c = *src) && dst < end; ) {
199 if (siz > 0)
/external/tcpdump/missing/
H A Dstrlcat.c45 * Appends src to string dst of size siz (unlike strncat, siz is the
46 * full size of dst, not space left). At most siz-1 characters
47 * will be copied. Always NUL terminates (unless siz == 0).
48 * Returns strlen(src); if retval >= siz, truncation occurred.
51 strlcat(char *dst, const char *src, size_t siz) argument
55 register size_t n = siz;
62 n = siz - dlen;
H A Dstrlcpy.c45 * Copy src to string dst of size siz. At most siz-1 characters
46 * will be copied. Always NUL terminates (unless siz == 0).
47 * Returns strlen(src); if retval >= siz, truncation occurred.
50 strlcpy(char *dst, const char *src, size_t siz) argument
54 register size_t n = siz;
66 if (siz != 0)
/external/llvm/tools/llvm-c-test/
H A Ddisassemble.c38 unsigned char *buf, int siz) {
50 while (pos < siz) {
51 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline,
37 do_disassemble(const char *triple, const char *features, unsigned char *buf, int siz) argument
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_defs.h153 u64 siz; member in struct:__tsan::MBlock
/external/regex-re2/util/
H A Dbenchmark.cc66 static void runN(Benchmark *b, int n, int siz) { argument
74 b->fnr(n, siz);
95 void RunBench(Benchmark* b, int nthread, int siz) { argument
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/wpa_supplicant_8/hostapd/src/crypto/
H A Drandom.c171 size_t siz, i; local
176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
177 for (i = 0; i < siz; i++)
179 left -= siz;
186 size_t siz, i; local
195 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
196 for (i = 0; i < siz; i++)
198 left -= siz;
/external/wpa_supplicant_8/src/crypto/
H A Drandom.c171 size_t siz, i; local
176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
177 for (i = 0; i < siz; i++)
179 left -= siz;
186 size_t siz, i; local
195 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
196 for (i = 0; i < siz; i++)
198 left -= siz;
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Drandom.c171 size_t siz, i; local
176 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
177 for (i = 0; i < siz; i++)
179 left -= siz;
186 size_t siz, i; local
195 siz = left > EXTRACT_LEN ? EXTRACT_LEN : left;
196 for (i = 0; i < siz; i++)
198 left -= siz;
/external/tcpdump/
H A Dprint-decnet.c858 size_t siz; local
862 str = (char *)malloc(siz = sizeof("00.0000"));
865 snprintf(str, siz, "%d.%d", area, node);
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
246 size_t left = siz;
258 if (siz != 0)
H A Dos_internal.c449 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
452 size_t left = siz;
464 if (siz != 0)
H A Dos_unix.c434 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
437 size_t left = siz;
449 if (siz != 0)
/external/wpa_supplicant_8/src/utils/
H A Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
246 size_t left = siz;
258 if (siz != 0)
H A Dos_internal.c449 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
452 size_t left = siz;
464 if (siz != 0)
H A Dos_unix.c434 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
437 size_t left = siz;
449 if (siz != 0)
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dos_win32.c243 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
246 size_t left = siz;
258 if (siz != 0)
H A Dos_internal.c449 size_t os_strlcpy(char *dest, const char *src, size_t siz) argument
452 size_t left = siz;
464 if (siz != 0)
/external/svox/pico/lib/
H A Dpicopal.c107 picopal_int32 picopal_strncmp(const picopal_char *a, const picopal_char *b, picopal_objsize_t siz) { argument
108 return (picopal_int32)strncmp((const char *)a, (const char *)b, (size_t) siz);
132 /* copy src into dst, but make sure that dst is not accessed beyond its size 'siz' and is allways NULLC-terminated.
133 * 'siz' is the number of bytes of the destination, including one byte for NULLC!
135 * the copy is successfull without truncation if picopal_strlcpy(dst,src,siz) < siz */
136 picopal_objsize_t picopal_strlcpy(picopal_char *dst, const picopal_char *src, picopal_objsize_t siz) argument
140 picopal_objsize_t n = siz;
153 if (siz != 0) {
176 picopal_objsize_t picopal_vslprintf(picopal_char * dst, picopal_objsize_t siz, cons argument
237 picopal_slprintf(picopal_char * dst, picopal_objsize_t siz, const picopal_char *fmt, ...) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/
H A Dbss.c705 unsigned int siz; local
707 siz = 32;
709 siz = wpa_s->last_scan_res_size * 2;
710 n = os_realloc_array(wpa_s->last_scan_res, siz,
715 wpa_s->last_scan_res_size = siz;

Completed in 570 milliseconds

12