len 6582 src/decNumber/decNumber.c Int len, Int *residue, uInt *status) { len 6592 src/decNumber/decNumber.c discard=len-set->digits; // digits to discard len 6596 src/decNumber/decNumber.c count=len; // avoids D2U len 6600 src/decNumber/decNumber.c dn->digits=len; // set the new length len 6612 src/decNumber/decNumber.c if (discard>len) { // everything, +1, is being discarded len 6616 src/decNumber/decNumber.c count=len; // avoids D2U len 7444 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { len 7445 src/decNumber/decNumber.c Unit *up=uar+(len-1); // -> msu len 7446 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu len 659 src/dps8/dps8_console.c size_t len = strlen (text); len 660 src/dps8/dps8_console.c char label [len + 1]; len 661 src/dps8/dps8_console.c char with [len + 1]; len 662 src/dps8/dps8_console.c char drive [len + 1]; len 4481 src/dps8/dps8_cpu.c int32 i, j, len; len 4491 src/dps8/dps8_cpu.c len = vsprintf (buf, fmt, arglist); len 4493 src/dps8/dps8_cpu.c len = vsnprintf (buf, (int)((unsigned long)(bufsize)-1), fmt, arglist); len 4499 src/dps8/dps8_cpu.c if ((len < 0) || (len >= bufsize-1)) len 4504 src/dps8/dps8_cpu.c if (bufsize < len + 2) len 4505 src/dps8/dps8_cpu.c bufsize = len + 2; len 4517 src/dps8/dps8_cpu.c for (i = j = 0; i < len; ++i) len 1304 src/dps8/dps8_crdpun.c size_t len = strlen(cptr); len 1308 src/dps8/dps8_crdpun.c if (len >= (sizeof(pun_path_prefix) - 2)) len 1312 src/dps8/dps8_crdpun.c if (len > 0) len 1314 src/dps8/dps8_crdpun.c if (pun_path_prefix[len - 1] != '/') len 1316 src/dps8/dps8_crdpun.c pun_path_prefix[len++] = '/'; len 1317 src/dps8/dps8_crdpun.c pun_path_prefix[len] = 0; len 1070 src/dps8/dps8_crdrdr.c size_t len = strlen(cptr); len 1074 src/dps8/dps8_crdrdr.c if (len >= (sizeof(rdr_path_prefix) - (strlen(rdr_name) + 3))) len 1078 src/dps8/dps8_crdrdr.c if (len > 0) len 1080 src/dps8/dps8_crdrdr.c if (rdr_path_prefix[len - 1] != '/') len 1082 src/dps8/dps8_crdrdr.c if (len == sizeof(rdr_path_prefix) - 1) len 1084 src/dps8/dps8_crdrdr.c rdr_path_prefix[len++] = '/'; len 1085 src/dps8/dps8_crdrdr.c rdr_path_prefix[len] = 0; len 1335 src/dps8/dps8_fnp2.c static void send_3270_msg (uint ctlr_no, unsigned char * msg, size_t len, bool brk) len 1339 src/dps8/dps8_fnp2.c len 1341 src/dps8/dps8_fnp2.c len 1348 src/dps8/dps8_fnp2.c if ((unsigned long) linep->nPos + len > sizeof (linep->buffer)) len 1352 src/dps8/dps8_fnp2.c memcpy (linep->buffer + linep->nPos, msg, len); len 1353 src/dps8/dps8_fnp2.c linep->nPos += len; len 120 src/dps8/dps8_mgp.c hash32s(const void *buf, size_t len, uint32_t h) len 124 src/dps8/dps8_mgp.c for (size_t i = 0; i < len; i++) len 1247 src/dps8/dps8_mgp.c make_cbridge_pkt(int len, int opcode) len 1249 src/dps8/dps8_mgp.c u_char *pkt = malloc(len + CBRIDGE_PACKET_HEADER_SIZE); /* space for cbridge header */ len 1262 src/dps8/dps8_mgp.c (void)memset(pkt, 0, len + CBRIDGE_PACKET_HEADER_SIZE); len 1265 src/dps8/dps8_mgp.c pkt[2] = len & 0xff; len 1266 src/dps8/dps8_mgp.c pkt[3] = len >> 8; len 1272 src/dps8/dps8_mgp.c make_rfc_pkt(int *len, char *host, char *contact, char *args) len 1275 src/dps8/dps8_mgp.c *len = strlen(host) + 1 + strlen(contact) + \ len 1278 src/dps8/dps8_mgp.c u_char *pkt = make_cbridge_pkt(*len, CHOP_RFC); len 1351 src/dps8/dps8_mgp.c cbridge_send_packet(int i, u_char *pkt, int len) len 1354 src/dps8/dps8_mgp.c int x = write(skt, pkt, len); len 1372 src/dps8/dps8_mgp.c else if (x != len) len 1374 src/dps8/dps8_mgp.c sim_printf("%s: wrote %d bytes (expected %d)\n", __func__, x, len); len 480 src/dps8/dps8_mt.c size_t len = strlen(cptr); len 484 src/dps8/dps8_mt.c if (len >= (sizeof(tape_path_prefix) - (LABEL_MAX + 2))) len 514 src/dps8/dps8_mt.c if (len > 0) len 516 src/dps8/dps8_mt.c if (tape_path_prefix[len - 1] != '/') len 518 src/dps8/dps8_mt.c tape_path_prefix[len++] = '/'; len 519 src/dps8/dps8_mt.c tape_path_prefix[len] = 0; len 538 src/dps8/dps8_mt.c size_t len = strlen(cptr); len 540 src/dps8/dps8_mt.c char buffer[len + 2]; len 541 src/dps8/dps8_mt.c char prefix[len + 2]; len 542 src/dps8/dps8_mt.c char dir[len + 2]; len 1885 src/dps8/dps8_prt.c size_t len = strlen(cptr); len 1887 src/dps8/dps8_prt.c if (len >= sizeof(prt_path)) len 1890 src/dps8/dps8_prt.c if (len > 0) len 1892 src/dps8/dps8_prt.c if (prt_path[len - 1] != '/') len 1894 src/dps8/dps8_prt.c if (len == sizeof(prt_path) - 1) len 1896 src/dps8/dps8_prt.c prt_path[len++] = '/'; len 1897 src/dps8/dps8_prt.c prt_path[len] = 0; len 41 src/dps8/dps8_socket_dev.c # define bzero(b,len) ((void)memset((b), '\0', (len)), (void) 0) len 4147 src/dps8/dps8_sys.c hash32s(const void *buf, size_t len, uint32_t h) len 4151 src/dps8/dps8_sys.c for (size_t i = 0; i < len; i++) len 42 src/dps8/fnpuv.h void fnpuv_start_write (uv_tcp_t * client, unsigned char * data, ssize_t len); len 210 src/dps8/segldr.c long len = strtol (p3, & endptr, 8); len 219 src/dps8/segldr.c if (len < 1 || len > 255) len 229 src/dps8/segldr.c long length = len * 1024; len 235 src/dps8/segldr.c (unsigned long) segnum, nextSegAddr, (unsigned long) len, length); len 54 src/dps8/utfile.c hash32s(const void *buf, size_t len, uint32_t h) len 58 src/dps8/utfile.c for (size_t i = 0; i < len; i++) len 42 src/libsir/include/sir/console.h bool _sir_write_stdout(const char* message, size_t len) { len 43 src/libsir/include/sir/console.h SIR_UNUSED(len); len 48 src/libsir/include/sir/console.h bool _sir_write_stderr(const char* message, size_t len) { len 49 src/libsir/include/sir/console.h SIR_UNUSED(len); len 57 src/libsir/include/sir/console.h bool _sir_write_stdio(HANDLE console, const char* message, size_t len); len 60 src/libsir/include/sir/console.h bool _sir_write_stdout(const char* message, size_t len) { len 61 src/libsir/include/sir/console.h return _sir_write_stdio(__sir_stdout, message, len); len 65 src/libsir/include/sir/console.h bool _sir_write_stderr(const char* message, size_t len) { len 66 src/libsir/include/sir/console.h return _sir_write_stdio(__sir_stderr, message, len); len 452 src/libsir/include/sir/helpers.h uint32_t FNV32_1a(const uint8_t* data, size_t len) { len 454 src/libsir/include/sir/helpers.h for (size_t n = 0; n < len; n++) { len 482 src/libsir/include/sir/helpers.h void* _sir_explicit_memset(void *ptr, int c, size_t len); len 173 src/libsir/include/sir/impl.h size_t len; len 175 src/libsir/include/sir/impl.h len = _sir_strnlen(str, maxlen); len 177 src/libsir/include/sir/impl.h copy = (char*)malloc(len + 1); len 179 src/libsir/include/sir/impl.h (void)memcpy(copy, str, len); len 180 src/libsir/include/sir/impl.h copy[len] = '\0'; len 237 src/libsir/include/sir/impl.h size_t len; len 241 src/libsir/include/sir/impl.h len = strlen(find); len 247 src/libsir/include/sir/impl.h } while (strncasecmp(s, find, len) != 0); len 78 src/libsir/src/sirconsole.c bool _sir_write_stdio(HANDLE console, const char* message, size_t len) { len 79 src/libsir/src/sirconsole.c DWORD chars = (DWORD)len; len 334 src/libsir/src/sirhelpers.c void* _sir_explicit_memset(void* ptr, int c, size_t len) len 336 src/libsir/src/sirhelpers.c return _sir_explicit_memset_impl(ptr, c, len); len 350 src/libsir/src/sirhelpers.c size_t len = strnlen(sub, strlen(str)); len 353 src/libsir/src/sirhelpers.c while ((r = strstr(p = r + len, sub)) != NULL) len 133 src/simh/linehistory.c size_t len; /* Current edited line length. */ len 423 src/simh/linehistory.c for (i = 0; i < lc->len; i++) len 453 src/simh/linehistory.c if (lc.len == 0) len 464 src/simh/linehistory.c if (i < lc.len) len 468 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); len 471 src/simh/linehistory.c ls->len = saved.len; len 490 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); len 491 src/simh/linehistory.c if (i == lc.len) len 501 src/simh/linehistory.c if (i < lc.len) len 504 src/simh/linehistory.c ls->len = ls->pos = nwritten; len 563 src/simh/linehistory.c size_t len = strlen(str); len 566 src/simh/linehistory.c copy = malloc(len + 1); len 572 src/simh/linehistory.c memcpy(copy, str, len + 1); len 573 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); len 581 src/simh/linehistory.c lc->cvec[lc->len++] = copy; len 596 src/simh/linehistory.c int len; len 603 src/simh/linehistory.c ab->len = 0; len 607 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) len 609 src/simh/linehistory.c if (len <= 0) len 614 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); len 621 src/simh/linehistory.c memcpy(new + ab->len, s, len); len 623 src/simh/linehistory.c ab->len += len; len 645 src/simh/linehistory.c if (hintsCallback && plen + l->len < l->cols) len 652 src/simh/linehistory.c int hintmaxlen = l->cols - ( plen + l->len ); len 704 src/simh/linehistory.c size_t len = l->len; len 711 src/simh/linehistory.c len--; len 714 src/simh/linehistory.c while (plen + len > l->cols) len 716 src/simh/linehistory.c len--; len 728 src/simh/linehistory.c while (len--) len 736 src/simh/linehistory.c abAppend(&ab, buf, len); len 750 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) len 769 src/simh/linehistory.c int rows = ( plen + l->len + l->cols - 1 ) len 813 src/simh/linehistory.c for (i = 0; i < l->len; i++) len 821 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); len 836 src/simh/linehistory.c if (l->pos && l->pos == l->len && ( l->pos + plen ) % l->cols == 0) len 873 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) len 907 src/simh/linehistory.c if (l->len < l->buflen) len 909 src/simh/linehistory.c if (l->len == l->pos) len 913 src/simh/linehistory.c l->len++; len 914 src/simh/linehistory.c l->buf[l->len] = '\0'; len 916 src/simh/linehistory.c if (( !mlmode && l->plen + l->len < l->cols && !hintsCallback )) len 935 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); len 937 src/simh/linehistory.c l->len++; len 939 src/simh/linehistory.c l->buf[l->len] = '\0'; len 962 src/simh/linehistory.c if (l->pos != l->len) len 973 src/simh/linehistory.c if (l->len == 0 || l->pos >= l->len) len 980 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') len 986 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] != ' ') len 997 src/simh/linehistory.c if (l->len == 0) len 1037 src/simh/linehistory.c if (l->pos != l->len) len 1039 src/simh/linehistory.c l->pos = l->len; len 1090 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); len 1144 src/simh/linehistory.c l->len = strlen(l->buf); len 1172 src/simh/linehistory.c l->len = strlen(l->buf); len 1196 src/simh/linehistory.c if (l->len > 0 && l->pos < l->len) len 1198 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); len 1199 src/simh/linehistory.c l->len--; len 1200 src/simh/linehistory.c l->buf[l->len] = '\0'; len 1209 src/simh/linehistory.c if (l->pos > 0 && l->len > 0) len 1211 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); len 1213 src/simh/linehistory.c l->len--; len 1214 src/simh/linehistory.c l->buf[l->len] = '\0'; len 1239 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); len 1240 src/simh/linehistory.c l->len -= diff; len 1250 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') len 1254 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') len 1258 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); len 1259 src/simh/linehistory.c l->len -= next_word_end - l->pos; len 1292 src/simh/linehistory.c l.len = 0; len 1322 src/simh/linehistory.c return ( l.len ); len 1339 src/simh/linehistory.c return ( l.len ); len 1381 src/simh/linehistory.c return ((int)l.len ); len 1393 src/simh/linehistory.c if (l.len > 0) /* if the line is empty, act as end-of-file. */ len 1519 src/simh/linehistory.c l.pos = l.len = 0; len 1525 src/simh/linehistory.c l.len = l.pos; len 1592 src/simh/linehistory.c size_t len = 0, maxlen = 0; len 1596 src/simh/linehistory.c if (len == maxlen) len 1620 src/simh/linehistory.c if (c == EOF && len == 0) len 1627 src/simh/linehistory.c line[len] = '\0'; len 1633 src/simh/linehistory.c line[len] = c; len 1634 src/simh/linehistory.c len++; len 1668 src/simh/linehistory.c size_t len; len 1678 src/simh/linehistory.c len = strlen(buf); len 1679 src/simh/linehistory.c while (len && ( buf[len - 1] == '\n' || buf[len - 1] == '\r' )) len 1681 src/simh/linehistory.c len--; len 1682 src/simh/linehistory.c buf[len] = '\0'; len 1810 src/simh/linehistory.c linenoiseHistorySetMaxLen(int len) len 1814 src/simh/linehistory.c if (len < 1) len 1823 src/simh/linehistory.c new = malloc(sizeof ( char * ) * len); len 1830 src/simh/linehistory.c if (len < tocopy) len 1834 src/simh/linehistory.c for (j = 0; j < tocopy - len; j++) len 1839 src/simh/linehistory.c tocopy = len; len 1842 src/simh/linehistory.c (void)memset(new, 0, sizeof ( char * ) * len); len 1851 src/simh/linehistory.c history_max_len = len; len 1864 src/simh/linehistory.c size_t len = 0, i = 0; len 1874 src/simh/linehistory.c len++; len 1877 src/simh/linehistory.c return ( len ); len 73 src/simh/linehistory.h size_t len; len 93 src/simh/linehistory.h int linenoiseHistorySetMaxLen(int len); len 1462 src/simh/scp.c size_t len = strlen(sub); len 1463 src/simh/scp.c while ((r = strstr(p = r + len, sub)) != NULL) { len 10242 src/simh/scp.c int32 len; len 10247 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 10252 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 10256 src/simh/scp.c if (bufsize < len + 2) len 10257 src/simh/scp.c bufsize = len + 2; len 10295 src/simh/scp.c size_t len; len 10301 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 10306 src/simh/scp.c if (len >= bufsize - 1) { len 10310 src/simh/scp.c if (bufsize < len + 2) len 10311 src/simh/scp.c bufsize = len + 2; len 10370 src/simh/scp.c int32 i, j, len; len 10376 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 10381 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 10385 src/simh/scp.c if (bufsize < len + 2) len 10386 src/simh/scp.c bufsize = len + 2; len 10398 src/simh/scp.c for (i = j = 0; i < len; ++i) { len 10421 src/simh/scp.c debug_unterm = len ? (((buf[len-1]=='\n')) ? 0 : 1) : debug_unterm; len 10428 src/simh/scp.c void sim_data_trace(DEVICE *dptr, UNIT *uptr, const uint8 *data, const char *position, size_t len, const char *txt, uint32 reason) len 10434 src/simh/scp.c sim_debug (reason, dptr, "%s %s %slen: %08X\n", sim_uname(uptr), txt, position, (unsigned int)len); len 10435 src/simh/scp.c if (data && len) { len 10475 src/simh/scp.c for (i=same=0; i<len; i += 16) { len 10486 src/simh/scp.c group = (((len - i) > 16) ? 16 : (len - i)); len 10529 src/simh/scp.c sim_debug (reason, dptr, "%04lx thru %04lx same as above\n", i-(16*same), (long unsigned int)(len-1)); len 10574 src/simh/scp.c size_t len; len 10601 src/simh/scp.c static void appendText (TOPIC *topic, const char *text, size_t len) len 10605 src/simh/scp.c if (!len) len 10608 src/simh/scp.c newt = (char *)realloc (topic->text, topic->len + len +1); len 10615 src/simh/scp.c memcpy (newt + topic->len, text, len); len 10616 src/simh/scp.c topic->len +=len; len 10617 src/simh/scp.c newt[topic->len] = '\0'; len 200 src/simh/scp.h void sim_data_trace(DEVICE *dptr, UNIT *uptr, const uint8 *data, const char *position, size_t len, const char *txt, uint32 reason); len 1177 src/simh/sim_disk.c void sim_disk_data_trace(UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason) len 1185 src/simh/sim_disk.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), pos, len, txt, reason); len 92 src/simh/sim_disk.h void sim_disk_data_trace (UNIT *uptr, const uint8 *data, size_t lba, size_t len, const char* txt, int detail, uint32 reason); len 115 src/simh/sim_tape.c static void sim_tape_data_trace (UNIT *uptr, const uint8 *data, size_t len, const char* txt, int detail, uint32 reason); len 301 src/simh/sim_tape.c static void sim_tape_data_trace(UNIT *uptr, const uint8 *data, size_t len, const char* txt, int detail, uint32 reason) len 308 src/simh/sim_tape.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), "", len, txt, reason); len 766 src/simh/sim_tmxr.c hash32s(const void *buf, size_t len, uint32_t h) len 770 src/simh/sim_tmxr.c for (size_t i = 0; i < len; i++) len 3480 src/simh/sim_tmxr.c int32 i, len; len 3484 src/simh/sim_tmxr.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 3488 src/simh/sim_tmxr.c if ((len < 0) || (len >= bufsize-1)) { len 3492 src/simh/sim_tmxr.c if (bufsize < len + 2) len 3493 src/simh/sim_tmxr.c bufsize = len + 2; len 3515 src/simh/sim_tmxr.c for (i = 0; i < len; ++i) {