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

1234567891011>>

/haiku-fatelf/src/bin/sharutils/lib/
H A Dmemset.c19 memset (str, c, len)
22 unsigned len;
26 while (len-- > 0)
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dmemset.c22 memset (char *str, int c, unsigned int len) argument
26 while (len-- > 0)
/haiku-fatelf/src/bin/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...]
/haiku-fatelf/src/bin/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...]
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dbcopy.c13 bcopy (src, dest, len)
15 int len;
18 while (len--)
22 char *lasts = src + (len-1);
23 char *lastd = dest + (len-1);
24 while (len--)
H A Dmempcpy.c42 mempcpy (dst, src, len)
45 size_t len;
47 return (char *) memcpy (dst, src, len) + len;
H A Dstpncpy.c23 @deftypefn Supplemental char* stpncpy (char *@var{dst}, const char *@var{src}, size_t @var{len})
25 Copies the string @var{src} into @var{dst}, copying exactly @var{len}
26 and padding with zeros if necessary. If @var{len} < strlen(@var{src})
27 then return @var{dst} + @var{len}, otherwise returns @var{dst} +
45 stpncpy (dst, src, len)
48 size_t len;
51 if (n > len)
52 n = len;
53 return strncpy (dst, src, len) + n;
/haiku-fatelf/src/system/libroot/posix/string/
H A Dmemmove.c23 int len; local
32 len = count; // copy the rest of the buffer with the byte mover
34 len = lsize - ((long)d & lmask); // move the ptrs up to a word boundary
36 count -= len;
37 for (; len > 0; len--)
40 for (len = count / lsize; len > 0; len--) {
45 for (len
[all...]
/haiku-fatelf/src/system/libroot/posix/string/arch/generic/
H A Dmemcpy.c21 int len; local
29 len = count; // copy the rest of the buffer with the byte mover
31 len = lsize - ((long)d & lmask); // move the ptrs up to a word boundary
33 count -= len;
34 for(; len > 0; len--)
37 for(len = count / lsize; len > 0; len--) {
42 for(len
[all...]
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/fs_shell/
H A Dpath_util.cpp16 int len = strlen(path); local
17 if (len == 0)
21 while (len > 0 && path[len - 1] == '/')
22 len--;
24 if (len == 0) {
26 len = 1;
29 int pos = len - 1;
36 len -= pos;
39 if (len >
[all...]
/haiku-fatelf/src/tools/fs_shell/
H A Dpath_util.cpp20 int len = strlen(path); local
21 if (len == 0)
25 while (len > 0 && path[len - 1] == '/')
26 len--;
28 if (len == 0) {
30 len = 1;
33 int pos = len - 1;
40 len -= pos;
43 if (len >
[all...]
/haiku-fatelf/src/bin/coreutils/lib/
H A Dmemset.c24 memset (void *str, int c, size_t len) argument
28 while (len-- > 0)
H A Dstrndup.c32 size_t len = strnlen (s, n); local
33 char *new = malloc (len + 1);
38 new[len] = '\0';
39 return memcpy (new, s, len);
H A Dunlink.c36 size_t len = strlen (name); local
38 if (len && ISSLASH (name[len - 1]))
64 char *short_name = malloc (len);
70 memcpy (short_name, name, len);
71 while (len && ISSLASH (short_name[len - 1]))
72 short_name[--len] = '\0';
73 if (len && (lstat (short_name, &st) || S_ISLNK (st.st_mode)))
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dmemset.c21 memset (void *str, int c, size_t len) argument
25 while (len-- > 0)
H A Dstrndup.c29 size_t len = strnlen (s, n); local
30 char *new = malloc (len + 1);
35 new[len] = '\0';
36 return memcpy (new, s, len);
/haiku-fatelf/src/libs/stdc++/legacy/
H A Dstream.cc94 char* dec(long i, int len /* = 0 */)
96 if (i >= 0) return itoa((unsigned long)i, len, 0, 10);
97 else return itoa((unsigned long)(-i), len, 1, 10);
99 char* dec(int i, int len /* = 0 */)
101 if (i >= 0) return itoa((unsigned long)i, len, 0, 10);
102 else return itoa((unsigned long)(-i), len, 1, 10);
104 char* dec(unsigned long i, int len /* = 0 */)
106 return itoa(i, len, 0, 10);
108 char* dec(unsigned int i, int len /* = 0 */)
110 return itoa(i, len,
147 str(const char* s, int len, int width) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/reiserfs/
H A Dhashes.h40 uint32 keyed_hash(const signed char *msg, int len);
41 uint32 yura_hash(const signed char *msg, int len);
42 uint32 r5_hash(const signed char *msg, int len);
44 uint32 key_offset_for_name(hash_function_t hash, const char *name, int len);
/haiku-fatelf/src/bin/network/tcpdump/missing/
H A Dstrdup.c49 size_t len; local
52 len = strlen(str) + 1;
53 if ((copy = malloc(len)) == NULL)
55 memcpy(copy, str, len);
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/reiserfs/
H A Dhashes.h40 uint32 keyed_hash(const signed char *msg, int len);
41 uint32 yura_hash(const signed char *msg, int len);
42 uint32 r5_hash(const signed char *msg, int len);
44 uint32 key_offset_for_name(hash_function_t hash, const char *name, int len);
/haiku-fatelf/src/bin/gdb/gdb/config/s390/
H A Dnm-linux.h45 extern int s390_insert_watchpoint (CORE_ADDR addr, int len);
46 extern int s390_remove_watchpoint (CORE_ADDR addr, int len);
49 #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) 1
55 #define target_insert_watchpoint(addr, len, type) \
56 s390_insert_watchpoint (addr, len)
58 #define target_remove_watchpoint(addr, len, type) \
59 s390_remove_watchpoint (addr, len)
/haiku-fatelf/src/bin/network/tcpdump/
H A Dprint-msdp.c41 unsigned int type, len; local
46 len = EXTRACT_16BITS(sp + 1);
47 if (len > 1500 || len < 3 || type == 0 || type > MSDP_TYPE_MAX)
53 len = EXTRACT_16BITS(sp + 1);
54 if (len > 1400 || vflag)
55 printf(" [len %u]", len);
56 if (len < 3)
69 if ((u_int)((*sp * 12) + 8) < len) {
[all...]
/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dfgets.c56 register size_t len; local
69 if ((len = fp->_r) <= 0) {
76 len = fp->_r;
86 if (len > n)
87 len = n;
88 t = memchr((void *)p, '\n', len);
90 len = ++t - p;
91 fp->_r -= len;
93 (void)memcpy((void *)s, (void *)p, len);
94 s[len]
[all...]
/haiku-fatelf/src/bin/gzip/
H A Dunpack.c42 * have contiguous codes. literal[code+lit_base[len]] is the literal
43 * for a code of len bits.
96 int len; /* bit length */ local
111 for (len = 1; len <= max_len; len++) {
112 leaves[len] = (int)get_byte();
113 n += leaves[len];
131 for (len = 1; len <
148 int len; /* current bit length */ local
188 int len; /* Bit length of current code */ local
[all...]
/haiku-fatelf/src/bin/gdb/gdb/config/i386/
H A Dnm-i386.h35 extern int i386_insert_watchpoint (CORE_ADDR addr, int len, int type);
40 extern int i386_remove_watchpoint (CORE_ADDR addr, int len, int type);
44 extern int i386_region_ok_for_watchpoint (CORE_ADDR addr, int len);
85 #define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr, len) \
86 i386_region_ok_for_watchpoint (addr, len)
102 #define target_insert_watchpoint(addr, len, type) \
103 i386_insert_watchpoint (addr, len, type)
105 #define target_remove_watchpoint(addr, len, type) \
106 i386_remove_watchpoint (addr, len, type)

Completed in 246 milliseconds

1234567891011>>