Searched refs:len (Results 1 - 25 of 7789) sorted by relevance

1234567891011>>

/macosx-10.10.1/Libc-1044.1.2/string/FreeBSD/
H A Dstrnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
H A Dstrndup.c42 size_t len; local
45 for (len = 0; len < n && str[len]; len++)
48 if ((copy = malloc(len + 1)) == NULL)
50 memcpy(copy, str, len);
51 copy[len] = '\0';
H A Dwcsnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
/macosx-10.10.1/xnu-2782.1.97/osfmk/prng/YarrowCoreLib/src/
H A DyarrowUtils.c48 trashMemory(void* mem, int len) argument
51 if(len == 0) {
58 memset(mem,0x00,len);
59 memset(mem,0xFF,len);
60 memset(mem,0x00,len);
/macosx-10.10.1/Security-57031.1.35/SecurityTests/clxutils/threadTest/
H A Dt_stdlib.c13 POINTER T_malloc(unsigned int len) argument
15 return (POINTER) malloc(len ? len : 1);
18 int T_memcmp(POINTER firstBlock, POINTER secondBlock, unsigned int len) argument
20 if (len == 0) {
23 return memcmp(firstBlock, secondBlock, len);
26 void T_memcpy(POINTER output, POINTER input, unsigned int len) argument
28 if (len != 0) {
29 memcpy(output, input, len);
33 void T_memmove(POINTER output, POINTER input, unsigned int len) argument
40 T_memset(POINTER output, int value, unsigned int len) argument
47 T_realloc(POINTER block, unsigned int len) argument
[all...]
/macosx-10.10.1/Security-57031.1.35/SecurityTests/cspxutils/utilLib/
H A Dt_stdlib.c16 POINTER T_malloc(unsigned int len) argument
18 return (POINTER) malloc(len ? len : 1);
23 int T_memcmp(POINTER firstBlock, POINTER secondBlock, unsigned int len)
25 if (len == 0) {
28 return memcmp(firstBlock, secondBlock, len);
31 void T_memcpy(POINTER output, POINTER input, unsigned int len)
33 if (len != 0) {
34 memcpy(output, input, len);
38 void T_memmove(POINTER output, POINTER input, unsigned int len)
53 T_realloc(POINTER block, unsigned int len) argument
[all...]
/macosx-10.10.1/tcl-105/tcl_ext/xotcl/xotcl/library/store/XOTclSdbm/
H A Dhash.c19 sdbm_hash(str, len)
22 register int len;
24 register size_t len;
33 if (len > 0) {
34 register int loop = (len + 8 - 1) >> 3;
36 switch(len & (8 - 1)) {
47 while (len--)
/macosx-10.10.1/Heimdal-398.1.2/lib/roken/
H A Dstrlcat.c42 size_t len; local
44 len = strnlen_s(dst, dst_sz);
46 len = strnlen(dst, dst_sz);
48 len = strlen(dst);
51 if (dst_sz <= len)
55 return len + strlen(src);
57 return len + strlcpy (dst + len, src, dst_sz - len);
/macosx-10.10.1/BerkeleyDB-21/db/clib/
H A Dprintf.c31 size_t len; local
39 len = (size_t)vsnprintf(buf, sizeof(buf), fmt, ap);
45 if (len > 0 && len <= sizeof(buf) && buf[len - 1] == '\0')
46 --len;
56 buf, sizeof(char), (size_t)len, stdout) == len ? (int)len: -1);
79 size_t len; local
122 size_t len; local
[all...]
H A Dstrdup.c51 size_t len; local
54 len = strlen(str) + 1;
55 if (!(copy = malloc((u_int)len)))
57 memcpy(copy, str, len);
/macosx-10.10.1/Security-57031.1.35/
H A Devroots.h22 subject_hash (register const char *str, register unsigned int len) argument
53 register int hval = len;
214 return hval + asso_values[(unsigned char)str[len - 1]];
224 subject_to_anchor_ix (register const char *str, register unsigned int len) argument
402 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
404 register int key = subject_hash (str, len);
413 if (len == 39)
420 if (len == 49)
427 if (len
[all...]
/macosx-10.10.1/Security-57031.1.35/SecurityTests/cspxutils/ccOpensslCompat/
H A DdigestCommonExtern.h15 extern int md2os(const void *p, unsigned long len, unsigned char *md);
16 extern int md4os(const void *p, unsigned long len, unsigned char *md);
17 extern int md5os(const void *p, unsigned long len, unsigned char *md);
18 extern int sha1os(const void *p, unsigned long len, unsigned char *md);
19 extern int sha224os(const void *p, unsigned long len, unsigned char *md);
20 extern int sha256os(const void *p, unsigned long len, unsigned char *md);
21 extern int sha384os(const void *p, unsigned long len, unsigned char *md);
22 extern int sha512os(const void *p, unsigned long len, unsigned char *md);
26 extern int md2cc(const void *p, unsigned long len, unsigned char *md);
27 extern int md4cc(const void *p, unsigned long len, unsigne
[all...]
/macosx-10.10.1/bootp-298/bootplib/
H A Din_cksum.h26 extern unsigned short in_cksum(void * pkt, int len);
/macosx-10.10.1/lukemftp-14/tnftp/libnetbsd/
H A Dstrdup.c38 size_t len; local
41 len = strlen(str) + 1;
42 if (!(copy = malloc(len)))
44 memcpy(copy, str, len);
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_apple_csp/lib/
H A DYarrowConnection.h35 extern void cspGetRandomBytes(void *buf, unsigned len);
40 extern void cspAddEntropy(const void *buf, unsigned len);
/macosx-10.10.1/bash-94.1.2/bash-3.2/lib/sh/
H A Dmemset.c19 memset (char *str, int c, unsigned int len) argument
23 while (len-- > 0)
/macosx-10.10.1/gnudiff-19/diffutils/lib/
H A Dquotesys.c38 size_t len = 0; local
50 return len;
65 len = 0;
76 quoted[len] = '-';
77 quoted[len + 1] = c;
79 len += 2;
86 quoted[len] = c;
87 len++;
95 quoted[len] = '\'';
96 len
[all...]
/macosx-10.10.1/gpatch-3/patch/
H A Dquotesys.c38 size_t len = 0; local
50 return len;
65 len = 0;
76 quoted[len] = '-';
77 quoted[len + 1] = c;
79 len += 2;
86 quoted[len] = c;
87 len++;
95 quoted[len] = '\'';
96 len
[all...]
/macosx-10.10.1/cxxfilt-11/cxxfilt/libiberty/
H A Dxstrndup.c51 size_t len = strlen (s); local
53 if (n < len)
54 len = n;
56 result = XNEWVEC (char, len + 1);
58 result[len] = '\0';
59 return (char *) memcpy (result, s, len);
H A Dbcopy.c15 bcopy (const void *src, void *dest, size_t len) argument
21 while (len--)
26 const char *lasts = (const char *)src + (len-1);
27 char *lastd = (char *)dest + (len-1);
28 while (len--)
/macosx-10.10.1/Libc-1044.1.2/secure/
H A Dstrlcpy_chk.c30 size_t len, size_t dstlen)
33 if (__builtin_expect (dstlen < len, 0))
36 retval = strlcpy (dest, src, len);
38 if (retval < len)
39 len = retval + 1;
41 __chk_overlap(dest, len, src, len);
29 __strlcpy_chk(char *restrict dest, char *restrict src, size_t len, size_t dstlen) argument
/macosx-10.10.1/postfix-255/postfix/src/util/
H A Dmymalloc.c9 /* char *mymalloc(len)
10 /* ssize_t len;
12 /* char *myrealloc(ptr, len)
14 /* ssize_t len;
22 /* char *mystrndup(str, len)
24 /* ssize_t len;
26 /* char *mymemdup(ptr, len)
28 /* ssize_t len;
108 #define CHECK_IN_PTR(ptr, real_ptr, len, fname) { \
115 if ((len
145 mymalloc(ssize_t len) argument
170 myrealloc(char *ptr, ssize_t len) argument
205 ssize_t len; local
233 mystrndup(const char *str, ssize_t len) argument
255 mymemdup(const char *ptr, ssize_t len) argument
[all...]
/macosx-10.10.1/OpenPAM-20/openpam/lib/
H A Dopenpam_readline.c57 size_t len, size; local
63 len = 0;
66 if (len >= size - 1) { \
72 line[len++] = ch; \
73 line[len] = '\0'; \
87 while (len > 0 && isspace((int)line[len - 1]))
88 --len;
89 line[len] = '\0';
90 if (len
[all...]
/macosx-10.10.1/apr-32/apr-util/apr-util/dbm/sdbm/
H A Dsdbm_hash.c36 long sdbm_hash(const char *str, int len) argument
45 if (len > 0) {
46 register int loop = (len + 8 - 1) >> 3;
48 switch(len & (8 - 1)) {
59 while (len--)
/macosx-10.10.1/curl-83.1.2/curl/lib/
H A Dstrdup.c32 size_t len; local
38 len = strlen(str);
40 if(len >= ((size_t)-1) / sizeof(char))
43 newstr = malloc((len+1)*sizeof(char));
47 memcpy(newstr,str,(len+1)*sizeof(char));

Completed in 191 milliseconds

1234567891011>>