/haiku-fatelf/src/libs/fluidsynth/src/ |
H A D | fluid_io.c | 30 int fluid_istream_gets(fluid_istream_t in, char* buf, int len); 50 int fluid_istream_readline(fluid_istream_t in, char* prompt, char* buf, int len) argument 61 snprintf(buf, len, "%s", line); 62 buf[len - 1] = 0; 67 return fluid_istream_gets(in, buf, len); 70 return fluid_istream_gets(in, buf, len); 75 int fluid_istream_gets(fluid_istream_t in, char* buf, int len) argument 80 buf[len - 1] = 0; 82 while (--len > 0) { 106 int len; local [all...] |
/haiku-fatelf/src/libs/print/libgutenprint/src/testpattern/ |
H A D | testpatternl.l | 41 size_t len = strlen(s); 42 if (len >= 2 && ((s[0] == '"' && s[len - 1] == '"') || 43 (s[0] == '\'' && s[len - 1] == '\''))) 45 char *sn = malloc(len - 1); 46 memcpy(sn, s + 1, len - 2); 47 sn[len - 2] = '\0';
|
/haiku-fatelf/src/system/libroot/posix/glibc/libio/ |
H A D | iofputs_u.c | 37 _IO_size_t len = strlen (str); local 40 if (_IO_fwide (fp, -1) == -1 && _IO_sputn (fp, str, len) == len)
|
H A D | iofputws_u.c | 37 _IO_size_t len = __wcslen (str); local 41 && _IO_sputn (fp, (char *) str, len) == len)
|
H A D | iogetline.c | 70 _IO_ssize_t len = fp->_IO_read_end - fp->_IO_read_ptr; variable 71 if (len <= 0) 86 ++len; 95 if ((_IO_size_t) len >= n) 96 len = n; 97 t = (char *) memchr ((void *) fp->_IO_read_ptr, delim, len); 101 len = t - fp->_IO_read_ptr; 106 ++len; 108 memcpy ((void *) ptr, (void *) fp->_IO_read_ptr, len); 110 return old_len + len; [all...] |
H A D | iogetwline.c | 73 _IO_ssize_t len = (fp->_wide_data->_IO_read_end local 75 if (len <= 0) 92 ++len; 100 if ((_IO_size_t) len >= n) 101 len = n; 102 t = wmemchr ((void *) fp->_wide_data->_IO_read_ptr, delim, len); 106 len = t - fp->_wide_data->_IO_read_ptr; 111 ++len; 114 len); 116 return old_len + len; [all...] |
/haiku-fatelf/src/system/libroot/posix/string/ |
H A D | strcasestr.c | 49 size_t len; local 53 len = strlen(find); 59 } while (strncasecmp(s, find, len) != 0);
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | stat.c | 56 size_t len = strlen (name); local 57 if (ISSLASH (name[len - 1])) 77 size_t len = strlen (name); local 79 if (PATH_MAX <= len) 81 else if (len) 84 if (ISSLASH (fixed_name[len - 1])) 87 while (len && ISSLASH (fixed_name[len - 1])) 88 fixed_name[--len] = '\0'; 89 if (!len) [all...] |
H A D | inet_ntop.c | 109 int len; local 111 len = sprintf (tmp, "%u.%u.%u.%u", src[0], src[1], src[2], src[3]); 112 if (len < 0) 115 if (len > size) 145 int base, len; member in struct:__anon3295 165 cur.base = i, cur.len = 1; 167 cur.len++; 173 if (best.base == -1 || cur.len > best.len) 181 if (best.base == -1 || cur.len > bes 213 int len = sprintf (tp, "%x", words[i]); local [all...] |
H A D | unlinkat.c | 41 size_t len; local 47 len = strlen (name); 48 if (len && ISSLASH (name[len - 1])) 58 char *short_name = malloc (len); 64 memcpy (short_name, name, len); 65 while (len && ISSLASH (short_name[len - 1])) 66 short_name[--len] = '\0'; 67 if (len [all...] |
H A D | snprintf.c | 44 size_t len; local 50 len = lenbuf; 60 size_t pruned_len = (len < size ? len : size - 1); 68 if (INT_MAX < len) 74 return len;
|
H A D | vfprintf.c | 43 size_t len; local 47 len = lenbuf; 55 if (fwrite (output, 1, len, fp) < len) 69 if (len > INT_MAX) 76 return len;
|
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | coff-solib.c | 68 bfd_byte len[4]; member in struct:libent 82 int len, nameoffset; local 87 len = bfd_get_32 (exec_bfd, ent->len); 91 if (len <= 0) 101 libsize -= len * 4; 102 lib += len * 4;
|
/haiku-fatelf/src/bin/gdb/gdb/config/ia64/ |
H A D | nm-linux.h | 68 #define target_insert_watchpoint(addr, len, type) \ 69 ia64_linux_insert_watchpoint (inferior_ptid, addr, len, type) 71 int len, int rw); 73 #define target_remove_watchpoint(addr, len, type) \ 74 ia64_linux_remove_watchpoint (inferior_ptid, addr, len) 76 int len); 87 LONGEST len);
|
/haiku-fatelf/src/libs/stdc++/legacy/ |
H A D | isgetsb.cc | 39 streamsize len = isb->_IO_read_end - isb->_IO_read_ptr; local 40 if (len <= 0) 44 len = isb->_IO_read_end - isb->_IO_read_ptr; 45 char *delimp = (char*)memchr((void*)isb->_IO_read_ptr, delim, len); 47 len = delimp - isb->_IO_read_ptr; 48 int written = sb.sputn(isb->_IO_read_ptr, len); 51 if (written != len)
|
/haiku-fatelf/src/tests/system/libroot/posix/ |
H A D | tst-wprintf2.c | 23 size_t len; local 65 len = strlen(buf); 66 if (buf[len - 1] == '\n') 67 --len; 72 printf("1st line: \"%.*s\" -> %s\n", (int) len, buf, 73 strncmp(buf, "test start int 3", len) == 0 ? "OK" : "FAIL"); 74 res |= strncmp(buf, "test start int 3", len) != 0; 78 len = strlen(buf); 79 if (buf[len - 1] == '\n') 80 --len; [all...] |
/haiku-fatelf/src/bin/network/ftp/ |
H A D | progressbar.c | 112 #define BUFLEFT (sizeof(buf) - len) 135 int len; local 166 len = snprintf(buf, sizeof(buf), "\r\n%s: " 169 (void)write(fileno(ttyout), buf, len); local 195 len = 0; 203 len += snprintf(buf + len, BUFLEFT, "\r"); 205 len += snprintf(buf + len, BUFLEFT, "%s", prefix); 210 len 279 (void)write(fileno(ttyout), buf, len); local 299 int remaining, hh, i, len; local [all...] |
/haiku-fatelf/headers/libs/agg/ |
H A D | agg_scanline_p.h | 53 coord_type len; // If negative, it's a solid span, covers is valid member in struct:agg::scanline_p8::span 81 m_cur_span->len = 0; 88 if(x == m_last_x+1 && m_cur_span->len > 0) 90 m_cur_span->len++; 97 m_cur_span->len = 1; 104 void add_cells(int x, unsigned len, const cover_type* covers) argument 106 memcpy(m_cover_ptr, covers, len * sizeof(cover_type)); 107 if(x == m_last_x+1 && m_cur_span->len > 0) 109 m_cur_span->len += (int16)len; 123 add_span(int x, unsigned len, unsigned cover) argument 196 coord_type len; // If negative, it's a solid span, covers is valid member in struct:agg::scanline32_p8::span 260 add_cells(int x, unsigned len, const cover_type* covers) argument 276 add_span(int x, unsigned len, unsigned cover) argument [all...] |
/haiku-fatelf/src/bin/network/atftpd/ |
H A D | argz.c | 60 error_t argz_create_sep (const char *string, int delim, char **argz, size_t *len) argument 91 *len = 0; 94 *len = nlen; 99 *len = 0; 105 size_t argz_count (const char *argz, size_t len) argument 108 while (len > 0) 112 len -= part_len + 1; 120 void argz_extract (const char *argz, size_t len, char **argv) argument 122 while (len > 0) 127 len [all...] |
/haiku-fatelf/src/bin/network/setwep/ |
H A D | setwep.c | 41 int len; local 45 len = *lenp; 67 if (p >= buf + len) { 83 len = p - buf; 85 if (!hexstr && len == 1 && buf[0] == '-') { 86 len = 0; 88 } else if (len < *lenp) 89 memset(p, 0, *lenp - len); 91 *lenp = len; 97 set80211(int s, const char* dev, int type, int val, int len, voi argument 118 int len; local 141 int len; local 192 getid(int s, const char* dev, int ix, void* data, size_t len, int* plen, int mesh) argument 211 print_string(const u_int8_t* buf, int len) argument 240 int len; local [all...] |
/haiku-fatelf/src/add-ons/translators/icns/openjpeg/ |
H A D | raw.c | 60 void raw_init_dec(opj_raw_t *raw, unsigned char *bp, int len) { argument 62 raw->lenmax = len; 63 raw->len = 0; 72 if (raw->len == raw->lenmax) { 78 raw->c = *(raw->start + raw->len); 79 raw->len++;
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | itos.c | 33 inttostr (i, buf, len) 36 size_t len; 38 return (fmtumax (i, 10, buf, len, 0)); 54 uinttostr (i, buf, len) 57 size_t len; 59 return (fmtumax (i, 10, buf, len, FL_UNSIGNED));
|
/haiku-fatelf/src/bin/findutils/lib/ |
H A D | printquoted.c | 54 size_t len = quotearg_buffer (smallbuf, sizeof smallbuf, s, -1, qopts); local 56 if (len < sizeof smallbuf) 64 buf = xmalloc (len + 1); 65 quotearg_buffer (buf, len + 1, s, -1, qopts); 69 len = qmark_chars(buf, len);
|
/haiku-fatelf/src/bin/unzip/ |
H A D | crc32.c | 37 ulg crc32(crc, buf, len) 40 extent len; /* number of bytes in buf[] */ 53 while (len >= 8) { 55 len -= 8; 58 if (len) do { 60 } while (--len);
|
/haiku-fatelf/src/bin/zip/ |
H A D | crc32.c | 37 ulg crc32(crc, buf, len) 40 extent len; /* number of bytes in buf[] */ 53 while (len >= 8) { 55 len -= 8; 58 if (len) do { 60 } while (--len);
|