/haiku-fatelf/src/bin/sharutils/lib/ |
H A D | memset.c | 19 memset (str, c, len) 22 unsigned len; 26 while (len-- > 0)
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | memset.c | 22 memset (char *str, int c, unsigned int len) argument 26 while (len-- > 0)
|
/haiku-fatelf/src/bin/diffutils/lib/ |
H A D | quotesys.c | 38 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 D | quotesys.c | 38 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 D | bcopy.c | 13 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 D | mempcpy.c | 42 mempcpy (dst, src, len) 45 size_t len; 47 return (char *) memcpy (dst, src, len) + len;
|
H A D | stpncpy.c | 23 @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 D | memmove.c | 23 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 D | memcpy.c | 21 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 D | path_util.cpp | 16 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 D | path_util.cpp | 20 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 D | memset.c | 24 memset (void *str, int c, size_t len) argument 28 while (len-- > 0)
|
H A D | strndup.c | 32 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 D | unlink.c | 36 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 D | memset.c | 21 memset (void *str, int c, size_t len) argument 25 while (len-- > 0)
|
H A D | strndup.c | 29 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 D | stream.cc | 94 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 D | hashes.h | 40 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 D | strdup.c | 49 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 D | hashes.h | 40 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 D | nm-linux.h | 45 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 D | print-msdp.c | 41 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 D | fgets.c | 56 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 D | unpack.c | 42 * 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 D | nm-i386.h | 35 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)
|