Searched defs:len (Results 1 - 25 of 92) sorted by relevance

1234

/bionic/libc/wchar/
H A Dwcsdup.c37 size_t len; local
39 len = wcslen(s) + 1;
40 if ((copy = malloc(len * sizeof(wchar_t))) == NULL)
42 return (wmemcpy(copy, s, len));
H A Dwcsnlen.c35 size_t len; local
37 for (len = 0; len < maxlen; len++, s++) {
41 return (len);
H A Dwcsstr.c50 size_t len; local
53 len = wcslen(find);
59 } while (wcsncmp(s, find, len) != 0);
H A Dwcswidth.c47 int len, l; local
49 len = 0;
53 len += l;
55 return (len);
/bionic/libc/string/
H A D__memmove_chk.c45 size_t len, size_t dest_len)
47 if (len > dest_len) {
54 return memmove(dest, src, len);
44 __memmove_chk(void *dest, const void *src, size_t len, size_t dest_len) argument
H A D__strncpy_chk.c45 size_t len, size_t dest_len)
47 if (len > dest_len) {
54 return strncpy(dest, src, len);
44 __strncpy_chk(char *dest, const char *src, size_t len, size_t dest_len) argument
H A Dstrcasestr.c46 size_t len; local
50 len = strlen(find);
56 } while (strncasecmp(s, find, len) != 0);
H A Dstrstr.c43 size_t len; local
46 len = strlen(find);
52 } while (strncmp(s, find, len) != 0);
H A D__strncat_chk.c46 size_t len, size_t dest_buf_size)
51 if (src_len > len) {
52 src_len = len;
71 return strncat(dest, src, len);
45 __strncat_chk(char *dest, const char *src, size_t len, size_t dest_buf_size) argument
/bionic/libc/bionic/
H A Ddirname_r.c37 int result, len; local
42 len = 1;
58 len = 1;
66 len = endp - path +1;
69 result = len;
70 if (len+1 > MAXPATHLEN) {
77 if (len > (int)bufflen-1) {
78 len = (int)bufflen-1;
83 if (len >= 0) {
84 memcpy( buffer, path, len );
[all...]
H A Dbasename_r.c37 int len, result; local
43 len = 1;
55 len = 1;
64 len = endp - startp +1;
67 result = len;
71 if (len > (int)bufflen-1) {
72 len = (int)bufflen-1;
77 if (len >= 0) {
78 memcpy( buffer, startp, len );
79 buffer[len]
[all...]
H A Dutmp.c81 size_t len = strlen(fname); local
83 if (len >= sizeof(utfile))
87 if (fname[len - 1] == 'x')
H A Dmalloc_debug_check_mapinfo.cpp41 int len = strlen(line); local
43 if (len < 1) return 0;
44 line[--len] = 0;
46 if (len < 50) return 0;
49 mapinfo* mi = static_cast<mapinfo*>(dlmalloc(sizeof(mapinfo) + (len - 47)));
H A Dssp.c48 ssize_t len = read(fd, &__stack_chk_guard, local
51 if (len == sizeof(__stack_chk_guard))
/bionic/libc/unistd/
H A Dptsname_r.c39 int len; local
51 len = snprintf( buff, sizeof(buff), "/dev/pts/%u", pty_num );
52 if (len+1 > (int)buflen) {
56 memcpy( buf, buff, len+1 );
/bionic/libc/include/netinet/
H A Dudp.h49 __u16 len; member in struct:udphdr
/bionic/libc/kernel/common/linux/
H A Dudp.h26 __u16 len; member in struct:udphdr
H A Dmsm_hw3d.h45 unsigned long len; member in struct:hw3d_region
/bionic/libc/stdio/
H A Dfgets.c47 size_t len; local
72 len = fp->_r;
81 if ((int)len > n)
82 len = n;
83 t = memchr((void *)p, '\n', len);
85 len = ++t - p;
86 fp->_r -= len;
88 (void)memcpy((void *)s, (void *)p, len);
89 s[len] = '\0';
93 fp->_r -= len;
[all...]
H A Dvsscanf.c40 eofread(void *cookie, char *buf, int len) argument
H A Dfgetln.c75 size_t len; local
93 *lenp = len = p - fp->_p;
95 fp->_r -= len;
111 for (len = fp->_r, off = 0;; len += fp->_r) {
119 if (__slbexpand(fp, len + OPTIMISTIC))
122 len - off);
123 off = len;
132 len += diff;
133 if (__slbexpand(fp, len))
[all...]
H A Dfread.c136 int len = (*fp->_read)(fp->_cookie, p, resid ); local
138 if (len <= 0) {
139 if (len == 0)
147 p += len;
148 resid -= len;
H A Dsscanf.c41 eofread(void *cookie, char *buf, int len) argument
/bionic/libc/stdlib/
H A Dgetenv.c49 int len, i; local
57 len = np - name;
59 for (np = name, i = len; i && *cp; i--)
/bionic/libc/netbsd/inet/
H A Dnsap_addr.c53 u_int len = 0; local
62 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) {
76 len++;
86 return (len);

Completed in 277 milliseconds

1234