HomeSort by relevance Sort by last modified time
    Searched defs:len (Results 1 - 25 of 2431) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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);
strndup.c 34 int len = slen < n ? slen : n; local
35 char* copy = malloc(len+1);
38 memcpy( copy, s, len );
39 copy[len] = 0;
strstr.c 43 size_t len; local
46 len = strlen(find);
52 } while (strncmp(s, find, len) != 0);
  /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);
basename.c 73 size_t len; local
75 for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--)
78 return len;
strndup.c 52 size_t len = __strnlen (s, n); local
53 char *new = malloc (len + 1);
58 new[len] = '\0';
59 return 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/lib/
xstrndup.c 28 size_t len = strnlen (string, n); local
29 *((char *) mempcpy ((res = xmalloc (len + 1)), string, len)) = '\0';
  /external/icu4c/test/perf/usetperf/
bitset.h 18 uint32_t len; member in class:BitSet
  /external/tcpdump/missing/
strdup.c 49 size_t len; local
52 len = strlen(str) + 1;
53 if ((copy = malloc(len)) == NULL)
55 memcpy(copy, str, len);
  /external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
chap.c 26 size_t len[3]; local
29 len[0] = 1;
31 len[1] = secret_len;
33 len[2] = challenge_len;
34 md5_vector(3, addr, len, response);
  /bionic/libc/stdio/
fgets.c 47 size_t len; local
69 len = fp->_r;
78 if ((int)len > n)
79 len = n;
80 t = memchr((void *)p, '\n', len);
82 len = ++t - p;
83 fp->_r -= len;
85 (void)memcpy((void *)s, (void *)p, len);
86 s[len] = '\0';
89 fp->_r -= len;
    [all...]

Completed in 1356 milliseconds

1 2 3 4 5 6 7 8 91011>>