/external/clang/test/Lexer/ |
digraph.c | 9 void copy(char d<::>, const char s<::>, int len) 11 while (len-- >= 0) 13 d<:len:> = s<:len:>; variable
|
/bionic/libc/string/ |
strxfrm.c | 41 size_t len = strlen(s2) + 1; local 43 if (len < n) 44 n = len; 46 return len;
|
strcasestr.c | 46 size_t len; local 50 len = strlen(find); 56 } while (strncasecmp(s, find, len) != 0);
|
strstr.c | 43 size_t len; local 46 len = strlen(find); 52 } while (strncmp(s, find, len) != 0);
|
/bionic/libc/wchar/ |
wcsnlen.c | 35 size_t len; local 37 for (len = 0; len < maxlen; len++, s++) { 41 return (len);
|
wcsdup.c | 37 size_t len; local 39 len = wcslen(s) + 1; 40 if ((copy = malloc(len * sizeof(wchar_t))) == NULL) 42 return (wmemcpy(copy, s, len));
|
wcsstr.c | 50 size_t len; local 53 len = wcslen(find); 59 } while (wcsncmp(s, find, len) != 0);
|
wcswidth.c | 47 int len, l; local 49 len = 0; 53 len += l; 55 return (len);
|
/bootable/bootloader/legacy/libc/ |
strlen.c | 31 int len = 0; local 32 while(*s++) len++; 33 return len;
|
/bionic/libc/bionic/ |
dirname_r.c | 37 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...] |
/bionic/libc/unistd/ |
ptsname_r.c | 39 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 );
|
/external/bison/lib/ |
strdup.c | 43 size_t len = strlen (s) + 1; local 44 void *new = malloc (len); 49 return (char *) memcpy (new, s, len);
|
/external/dropbear/ |
cli-service.c | 52 unsigned int len; local 56 servicename = buf_getstring(ses.payload, &len); 60 && len == SSH_SERVICE_USERAUTH_LEN 61 && strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) { 71 && len == SSH_SERVICE_CONNECTION_LEN 72 && strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) {
|
svr-service.c | 33 static void send_msg_service_accept(unsigned char *name, int len); 40 unsigned int len; local 44 name = buf_getstring(ses.payload, &len); 47 if (len == SSH_SERVICE_USERAUTH_LEN && 48 strncmp(SSH_SERVICE_USERAUTH, name, len) == 0) { 50 send_msg_service_accept(name, len); 57 if (len == SSH_SERVICE_CONNECTION_LEN && 58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) { 63 send_msg_service_accept(name, len); 76 static void send_msg_service_accept(unsigned char *name, int len) { [all...] |
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/ |
der_length_integer.c | 28 unsigned long z, len; local 45 z = len = leading_zero + mp_unsigned_bin_size(num); 53 len = z = z >> 3; 59 ++len; 62 ++len; 65 ++len; 71 ++len; 74 *outlen = len;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/octet/ |
der_decode_octet_string.c | 32 unsigned long x, y, len; local 58 len = 0; 61 len = (len << 8) | in[x++]; 64 len = in[x++] & 0x7F; 68 if (len > *outlen) { 69 *outlen = len; 73 if (len + x > inlen) { 78 for (y = 0; y < len; y++) {
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/short_integer/ |
der_decode_short_integer.c | 30 unsigned long len, x, y; local 46 /* get the packet len */ 47 len = in[x++]; 49 if (x + len > inlen) { 55 while (len--) {
|
der_length_short_integer.c | 28 unsigned long z, y, len; local 49 len = 1; 52 ++len; 55 len += z; 58 len += (num&(1UL<<((z<<3) - 1))) ? 1 : 0; 61 *outlen = len;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/ |
der_encode_utf8_string.c | 32 unsigned long x, y, len; local 39 for (x = len = 0; x < inlen; x++) { 43 len += der_utf8_charsize(in[x]); 46 if (len < 128) { 47 y = 2 + len; 48 } else if (len < 256) { 49 y = 3 + len; 50 } else if (len < 65536UL) { 51 y = 4 + len; 52 } else if (len < 16777216UL) [all...] |
der_length_utf8_string.c | 46 unsigned long x, len; local 51 len = 0; 56 len += der_utf8_charsize(in[x]); 59 if (len < 128) { 61 *outlen = 2 + len; 62 } else if (len < 256) { 64 *outlen = 3 + len; 65 } else if (len < 65536UL) { 67 *outlen = 4 + len; 68 } else if (len < 16777216UL) [all...] |
/external/dropbear/libtommath/ |
bn_mp_clear.c | 23 int len; local 28 len = a->alloc; 30 while (len--) {
|
/external/e2fsprogs/lib/et/ |
vfprintf.c | 32 int len; local 38 len = _doprnt(fmt, ap, iop); 45 len = _doprnt(fmt, ap, iop); 47 return (ferror(iop) ? EOF : len);
|
/external/elfutils/bionic-fixup/ |
getline.c | 33 size_t len = n[0] + 1; local 36 n[0] = len; 39 *lineptr = malloc(len); 42 memcpy(*lineptr, ptr, len-1); 45 (*lineptr)[len-1] = '\0'; 48 return len;
|
/external/elfutils/host-darwin-fixup/ |
getline.c | 33 size_t len = n[0] + 1; local 36 n[0] = len; 39 *lineptr = malloc(len); 42 memcpy(*lineptr, ptr, len-1); 45 (*lineptr)[len-1] = '\0'; 48 return len;
|
/external/elfutils/lib/ |
xstrndup.c | 41 size_t len = strnlen (string, n); local 42 *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0';
|