HomeSort by relevance Sort by last modified time
    Searched full:maxlen (Results 1 - 25 of 468) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /toolchain/binutils/binutils-2.25/libiberty/
strnlen.c 6 @deftypefn Supplemental size_t strnlen (const char *@var{s}, size_t @var{maxlen})
9 past the first @var{maxlen} characters in the string. If there is no
10 '\0' character in the first @var{maxlen} characters, returns
11 @var{maxlen}.
22 strnlen (const char *s, size_t maxlen)
26 for (i = 0; i < maxlen; ++i)
  /external/libexif/libexif/olympus/
mnote-olympus-entry.c 33 #define CF(format,target,v,maxlen) \
36 snprintf (v, maxlen, \
45 #define CF2(format,target1,target2,v,maxlen) \
48 snprintf (v, maxlen, \
58 #define CC(number,target,v,maxlen) \
61 snprintf (v, maxlen, \
68 #define CC2(number,t1,t2,v,maxlen) \
71 snprintf (v, maxlen, \
273 mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen)
287 memset (v, 0, maxlen);
    [all...]
  /external/bison/lib/
strnlen1.c 1 /* Find the length of STRING + 1, but scan at most MAXLEN bytes.
24 /* Find the length of STRING + 1, but scan at most MAXLEN bytes.
25 If no '\0' terminator is found in that many characters, return MAXLEN. */
26 /* This is the same as strnlen (string, maxlen - 1) + 1. */
28 strnlen1 (const char *string, size_t maxlen)
30 const char *end = (const char *) memchr (string, '\0', maxlen);
34 return maxlen;
strnlen.c 1 /* Find the length of STRING, but scan at most MAXLEN characters.
22 /* Find the length of STRING, but scan at most MAXLEN characters.
23 If no '\0' terminator is found in that many characters, return MAXLEN. */
26 strnlen (const char *string, size_t maxlen)
28 const char *end = memchr (string, '\0', maxlen);
29 return end ? (size_t) (end - string) : maxlen;
strnlen1.h 1 /* Find the length of STRING + 1, but scan at most MAXLEN bytes.
28 /* Find the length of STRING + 1, but scan at most MAXLEN bytes.
29 If no '\0' terminator is found in that many characters, return MAXLEN. */
30 /* This is the same as strnlen (string, maxlen - 1) + 1. */
31 extern size_t strnlen1 (const char *string, size_t maxlen)
  /external/libexif/libexif/fuji/
mnote-fuji-entry.c 31 #define CF(format,target,v,maxlen) \
34 snprintf (v, maxlen, \
43 #define CC(number,target,v,maxlen) \
46 snprintf (v, maxlen, \
191 char *val, unsigned int maxlen)
202 memset (val, 0, maxlen);
203 maxlen--;
207 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen);
208 CC (entry->components, 4, val, maxlen);
209 memcpy (val, entry->data, MIN(maxlen, entry->size))
    [all...]
  /prebuilts/misc/windows/sdl2/test/
checkkeys.c 33 print_string(char **text, size_t *maxlen, const char *fmt, ...)
39 len = SDL_vsnprintf(*text, *maxlen, fmt, ap);
42 if ( ((size_t) len) < *maxlen ) {
43 *maxlen -= (size_t) len;
45 *maxlen = 0;
52 print_modifiers(char **text, size_t *maxlen)
55 print_string(text, maxlen, " modifiers:");
58 print_string(text, maxlen, " (none)");
62 print_string(text, maxlen, " LSHIFT");
64 print_string(text, maxlen, " RSHIFT")
    [all...]
  /external/iproute2/include/
libnetlink.h 81 int addattr(struct nlmsghdr *n, int maxlen, int type);
82 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
83 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
84 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
85 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
86 int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
88 int addattr_l(struct nlmsghdr *n, int maxlen, int type,
90 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
91 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
93 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type
    [all...]
  /frameworks/native/opengl/tools/glgen/
convert_to_java.py 24 maxLen = 0
28 maxLen = max(maxLen, len(defineValuePair[0]))
31 print(' public static final int {0[0]:<{1}} = {0[1]};'.format(define, maxLen))
  /external/libexif/libexif/
exif-entry.c 441 * \param[in] maxlen one less than the length of the buffer val
444 exif_entry_format_value(ExifEntry *e, char *val, size_t maxlen)
457 if (!e->size || !maxlen)
459 ++maxlen; /* include the terminating NUL */
462 snprintf (val, maxlen, _("%i bytes undefined data"), e->size);
467 snprintf (val, maxlen, "0x%02x", v_byte);
471 snprintf (val+len, maxlen-len, ", 0x%02x", v_byte);
473 if (len >= maxlen-1) break;
478 snprintf (val, maxlen, "%u", v_short);
483 snprintf (val+len, maxlen-len, ", %u", v_short)
    [all...]
  /external/libexif/libexif/pentax/
mnote-pentax-entry.c 35 #define CF(format,target,v,maxlen) \
38 snprintf (v, maxlen, \
47 #define CC(number,target,v,maxlen) \
50 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \
60 snprintf (v, maxlen, \
309 char *val, unsigned int maxlen)
317 memset (val, 0, maxlen);
318 maxlen--;
341 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen);
    [all...]
  /external/libexif/libexif/canon/
mnote-canon-entry.c 36 #define CF(format,target,v,maxlen) \
39 snprintf (v, maxlen, \
48 #define CC(number,target,v,maxlen) \
51 snprintf (v, maxlen, \
57 #define CC2(number,t1,t2,v,maxlen) \
60 snprintf (v, maxlen, \
443 unsigned int t, ExifShort vs, char *val, unsigned int maxlen)
456 strncpy (val, _(table[j].name), maxlen);
459 snprintf (val, maxlen, "0x%04x", vs);
465 unsigned int t, ExifShort vs, char *val, unsigned int maxlen)
    [all...]
  /system/core/adb/
get_my_path_darwin.cpp 22 void get_my_path(char *s, size_t maxLen)
29 CFStringGetFileSystemRepresentation(executablePathString, s, maxLen);
get_my_path_linux.cpp 24 void get_my_path(char *exe, size_t maxLen)
28 int err = readlink(proc, exe, maxLen - 1);
  /bionic/libc/bionic/
strnlen.c 30 size_t strnlen(const char* str, size_t maxlen)
32 char* p = memchr(str, 0, maxlen);
35 return maxlen;
  /external/lzma/C/
LzFind.c 326 UInt32 *distances, UInt32 maxLen)
337 if (pb[maxLen] == cur[maxLen] && *pb == *cur)
343 if (maxLen < len)
345 *distances++ = maxLen = len;
357 UInt32 *distances, UInt32 maxLen)
380 if (maxLen < len)
382 *distances++ = maxLen = len;
479 #define GET_MATCHES_FOOTER(offset, maxLen) \
481 distances + offset, maxLen) - distances); MOVE_POS_RET;
    [all...]
  /external/lzma/CS/7zip/Common/
CommandLineParser.cs 23 public int MaxLen;
27 int minLen, int maxLen, string postCharSet)
33 MaxLen = maxLen;
84 int maxLen = kNoLen;
88 if (switchLen <= maxLen || pos + switchLen > len)
94 maxLen = switchLen;
97 if (maxLen == kNoLen)
98 throw new Exception("maxLen == kNoLen");
104 pos += maxLen;
    [all...]
  /external/iproute2/lib/
libnetlink.c 335 struct nlmsghdr *answer, size_t maxlen)
418 MIN(maxlen, h->nlmsg_len));
432 MIN(maxlen, h->nlmsg_len));
620 int addattr(struct nlmsghdr *n, int maxlen, int type)
622 return addattr_l(n, maxlen, type, NULL, 0);
625 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data)
627 return addattr_l(n, maxlen, type, &data, sizeof(__u8));
630 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data)
632 return addattr_l(n, maxlen, type, &data, sizeof(__u16));
635 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data
    [all...]
  /external/toybox/toys/pending/
fold.c 34 int bufsz, len = 0, maxlen; local
36 if (toys.optflags & FLAG_w) maxlen = TT.width;
37 else if (toys.optflags & FLAG_u) maxlen = 0;
38 else maxlen = 80;
79 if (maxlen > 0 && len >= maxlen && buf[pos+1] != '\n' && buf[pos+1] != '\b') {
  /external/clang/test/Sema/
enable_if.c 24 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
29 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
34 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0));
37 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'maxlen' is known to be less than or equal to the buffer size}}
41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
42 "chosen when 'maxlen' is known to be less than or equal to the buffer size")))
45 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explicitly made unavailable}}
49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
50 "chosen when 'maxlen' is larger than the buffer size"))
    [all...]
  /external/fio/lib/
num2str.c 12 char *num2str(uint64_t num, int maxlen, int base, int pow2, int unit_base)
40 if (strlen(tmp) <= maxlen)
60 decimals = maxlen - strlen(tmp);
  /external/icu/icu4c/source/i18n/
name2uni.cpp 114 int32_t maxLen = uprv_getMaxCharNameLength();
115 if (maxLen == 0) {
121 ++maxLen; // allow for temporary trailing space
122 char* cbuf = (char*) uprv_malloc(maxLen);
172 // If we are too long then abort. maxLen includes
174 if (name.length() > maxLen) {
191 name.extract(0, len, cbuf, maxLen, US_INV);
227 // maxLen includes temporary trailing space, so use '>='.
228 if (name.length() >= maxLen) {
uni2name.cpp 76 int32_t maxLen = uprv_getMaxCharNameLength();
77 if (maxLen == 0) {
83 char* buf = (char*) uprv_malloc(maxLen);
100 if ((len = u_charName(c, U_EXTENDED_CHAR_NAME, buf, maxLen, &status)) >0 && !U_FAILURE(status)) {
  /external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
AbbreviatorTest.java 106 int maxLen = rh.nextInt(MAX_RANDOM_MAX_LEN) + fixedLen;
107 if (maxLen <= 1) {
110 // System.out.println("maxLen="+maxLen);
111 int targetLen = (maxLen / 2) + rh.nextInt(maxLen / 2) + 1;
113 if (targetLen > maxLen) {
114 targetLen = maxLen;
116 String filename = rh.buildRandomFileName(averageLen, maxLen);
  /frameworks/base/cmds/svc/src/com/android/commands/svc/
Svc.java 77 int maxlen = 0;
81 if (maxlen < len) {
82 maxlen = len;
85 String format = " %-" + maxlen + "s %s";

Completed in 540 milliseconds

1 2 3 4 5 6 7 8 91011>>