len 6602 src/decNumber/decNumber.c Int len, Int *residue, uInt *status) { len 6612 src/decNumber/decNumber.c discard=len-set->digits; // digits to discard len 6616 src/decNumber/decNumber.c count=len; // avoids D2U len 6620 src/decNumber/decNumber.c dn->digits=len; // set the new length len 6632 src/decNumber/decNumber.c if (discard>len) { // everything, +1, is being discarded len 6636 src/decNumber/decNumber.c count=len; // avoids D2U len 7466 src/decNumber/decNumber.c static Int decGetDigits(Unit *uar, Int len) { len 7467 src/decNumber/decNumber.c Unit *up=uar+(len-1); // -> msu len 7468 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu len 652 src/dps8/dps8_console.c size_t len = strlen (text); len 653 src/dps8/dps8_console.c char label [len + 1]; len 654 src/dps8/dps8_console.c char with [len + 1]; len 655 src/dps8/dps8_console.c char drive [len + 1]; len 4360 src/dps8/dps8_cpu.c int32 i, j, len; len 4370 src/dps8/dps8_cpu.c len = vsprintf (buf, fmt, arglist); len 4372 src/dps8/dps8_cpu.c len = vsnprintf (buf, (int)((unsigned long)(bufsize)-1), fmt, arglist); len 4378 src/dps8/dps8_cpu.c if ((len < 0) || (len >= bufsize-1)) len 4383 src/dps8/dps8_cpu.c if (bufsize < len + 2) len 4384 src/dps8/dps8_cpu.c bufsize = len + 2; len 4396 src/dps8/dps8_cpu.c for (i = j = 0; i < len; ++i) len 1301 src/dps8/dps8_crdpun.c size_t len = strlen(cptr); len 1305 src/dps8/dps8_crdpun.c if (len >= (sizeof(pun_path_prefix) - 2)) len 1309 src/dps8/dps8_crdpun.c if (len > 0) len 1311 src/dps8/dps8_crdpun.c if (pun_path_prefix[len - 1] != '/') len 1313 src/dps8/dps8_crdpun.c pun_path_prefix[len++] = '/'; len 1314 src/dps8/dps8_crdpun.c pun_path_prefix[len] = 0; len 1057 src/dps8/dps8_crdrdr.c size_t len = strlen(cptr); len 1061 src/dps8/dps8_crdrdr.c if (len >= (sizeof(rdr_path_prefix) - (strlen(rdr_name) + 3))) len 1065 src/dps8/dps8_crdrdr.c if (len > 0) len 1067 src/dps8/dps8_crdrdr.c if (rdr_path_prefix[len - 1] != '/') len 1069 src/dps8/dps8_crdrdr.c if (len == sizeof(rdr_path_prefix) - 1) len 1071 src/dps8/dps8_crdrdr.c rdr_path_prefix[len++] = '/'; len 1072 src/dps8/dps8_crdrdr.c rdr_path_prefix[len] = 0; len 1306 src/dps8/dps8_fnp2.c static void send_3270_msg (uint ctlr_no, unsigned char * msg, size_t len, bool brk) len 1310 src/dps8/dps8_fnp2.c len 1312 src/dps8/dps8_fnp2.c len 1319 src/dps8/dps8_fnp2.c if ((unsigned long) linep->nPos + len > sizeof (linep->buffer)) len 1323 src/dps8/dps8_fnp2.c memcpy (linep->buffer + linep->nPos, msg, len); len 1324 src/dps8/dps8_fnp2.c linep->nPos += len; len 481 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 1850 src/dps8/dps8_prt.c size_t len = strlen(cptr); len 1852 src/dps8/dps8_prt.c if (len >= sizeof(prt_path)) len 1855 src/dps8/dps8_prt.c if (len > 0) len 1857 src/dps8/dps8_prt.c if (prt_path[len - 1] != '/') len 1859 src/dps8/dps8_prt.c if (len == sizeof(prt_path) - 1) len 1861 src/dps8/dps8_prt.c prt_path[len++] = '/'; len 1862 src/dps8/dps8_prt.c prt_path[len] = 0; len 44 src/dps8/dps8_socket_dev.c # define bzero(b,len) (memset((b), '\0', (len)), (void) 0) len 45 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 234 src/dps8/segldr.c sim_printf ("Placed stack (%lo) at %o length %lo allocated %lo\n", (unsigned long) segnum, nextSegAddr, (unsigned long) len, length); len 219 src/dps8/utarray.h # define utarray_erase(a,pos,len) do { \ len 222 src/dps8/utarray.h for(_ut_i=0; _ut_i < len; _ut_i++) { \ len 226 src/dps8/utarray.h if ((a)->i > (pos+len)) { \ len 227 src/dps8/utarray.h memmove( _utarray_eltptr((a),pos), _utarray_eltptr((a),pos+len), \ len 228 src/dps8/utarray.h (((a)->i)-(pos+len))*((a)->icd.sz)); \ len 230 src/dps8/utarray.h (a)->i -= (len); \ len 660 src/dps8/uthash.h # define HASH_KEYCMP(a,b,len) memcmp(a,b,len) len 142 src/simh/linehistory.c size_t len; /* Current edited line length. */ len 422 src/simh/linehistory.c for (i = 0; i < lc->len; i++) len 452 src/simh/linehistory.c if (lc.len == 0) len 463 src/simh/linehistory.c if (i < lc.len) len 467 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); len 470 src/simh/linehistory.c ls->len = saved.len; len 489 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); len 490 src/simh/linehistory.c if (i == lc.len) len 500 src/simh/linehistory.c if (i < lc.len) len 503 src/simh/linehistory.c ls->len = ls->pos = nwritten; len 562 src/simh/linehistory.c size_t len = strlen(str); len 565 src/simh/linehistory.c copy = malloc(len + 1); len 571 src/simh/linehistory.c memcpy(copy, str, len + 1); len 572 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); len 580 src/simh/linehistory.c lc->cvec[lc->len++] = copy; len 595 src/simh/linehistory.c int len; len 602 src/simh/linehistory.c ab->len = 0; len 606 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) len 608 src/simh/linehistory.c if (len <= 0) len 613 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); len 620 src/simh/linehistory.c memcpy(new + ab->len, s, len); len 622 src/simh/linehistory.c ab->len += len; len 644 src/simh/linehistory.c if (hintsCallback && plen + l->len < l->cols) len 651 src/simh/linehistory.c int hintmaxlen = l->cols - ( plen + l->len ); len 703 src/simh/linehistory.c size_t len = l->len; len 710 src/simh/linehistory.c len--; len 713 src/simh/linehistory.c while (plen + len > l->cols) len 715 src/simh/linehistory.c len--; len 727 src/simh/linehistory.c while (len--) len 735 src/simh/linehistory.c abAppend(&ab, buf, len); len 749 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) len 768 src/simh/linehistory.c int rows = ( plen + l->len + l->cols - 1 ) len 812 src/simh/linehistory.c for (i = 0; i < l->len; i++) len 820 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); len 835 src/simh/linehistory.c if (l->pos && l->pos == l->len && ( l->pos + plen ) % l->cols == 0) len 872 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) len 906 src/simh/linehistory.c if (l->len < l->buflen) len 908 src/simh/linehistory.c if (l->len == l->pos) len 912 src/simh/linehistory.c l->len++; len 913 src/simh/linehistory.c l->buf[l->len] = '\0'; len 915 src/simh/linehistory.c if (( !mlmode && l->plen + l->len < l->cols && !hintsCallback )) len 934 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); len 936 src/simh/linehistory.c l->len++; len 938 src/simh/linehistory.c l->buf[l->len] = '\0'; len 961 src/simh/linehistory.c if (l->pos != l->len) len 972 src/simh/linehistory.c if (l->len == 0 || l->pos >= l->len) len 979 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') len 985 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] != ' ') len 996 src/simh/linehistory.c if (l->len == 0) len 1036 src/simh/linehistory.c if (l->pos != l->len) len 1038 src/simh/linehistory.c l->pos = l->len; len 1090 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); len 1146 src/simh/linehistory.c l->len = strlen(l->buf); len 1175 src/simh/linehistory.c l->len = strlen(l->buf); len 1199 src/simh/linehistory.c if (l->len > 0 && l->pos < l->len) len 1201 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); len 1202 src/simh/linehistory.c l->len--; len 1203 src/simh/linehistory.c l->buf[l->len] = '\0'; len 1212 src/simh/linehistory.c if (l->pos > 0 && l->len > 0) len 1214 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); len 1216 src/simh/linehistory.c l->len--; len 1217 src/simh/linehistory.c l->buf[l->len] = '\0'; len 1242 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); len 1243 src/simh/linehistory.c l->len -= diff; len 1253 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') len 1257 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') len 1261 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); len 1262 src/simh/linehistory.c l->len -= next_word_end - l->pos; len 1295 src/simh/linehistory.c l.len = 0; len 1325 src/simh/linehistory.c return ( l.len ); len 1342 src/simh/linehistory.c return ( l.len ); len 1385 src/simh/linehistory.c return ((int)l.len ); len 1397 src/simh/linehistory.c if (l.len > 0) /* if the line is empty, act as end-of-file. */ len 1523 src/simh/linehistory.c l.pos = l.len = 0; len 1529 src/simh/linehistory.c l.len = l.pos; len 1594 src/simh/linehistory.c size_t len = 0, maxlen = 0; len 1598 src/simh/linehistory.c if (len == maxlen) len 1622 src/simh/linehistory.c if (c == EOF && len == 0) len 1629 src/simh/linehistory.c line[len] = '\0'; len 1635 src/simh/linehistory.c line[len] = c; len 1636 src/simh/linehistory.c len++; len 1669 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 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 72 src/simh/linehistory.h size_t len; len 92 src/simh/linehistory.h int linenoiseHistorySetMaxLen(int len); len 1386 src/simh/scp.c size_t len = strlen(sub); len 1387 src/simh/scp.c while ((r = strstr(p = r + len, sub)) != NULL) { len 9639 src/simh/scp.c int32 len; len 9644 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 9649 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 9653 src/simh/scp.c if (bufsize < len + 2) len 9654 src/simh/scp.c bufsize = len + 2; len 9692 src/simh/scp.c int32 len; len 9698 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 9703 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 9707 src/simh/scp.c if (bufsize < len + 2) len 9708 src/simh/scp.c bufsize = len + 2; len 9767 src/simh/scp.c int32 i, j, len; len 9773 src/simh/scp.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 9778 src/simh/scp.c if ((len < 0) || (len >= bufsize-1)) { len 9782 src/simh/scp.c if (bufsize < len + 2) len 9783 src/simh/scp.c bufsize = len + 2; len 9795 src/simh/scp.c for (i = j = 0; i < len; ++i) { len 9818 src/simh/scp.c debug_unterm = len ? (((buf[len-1]=='\n')) ? 0 : 1) : debug_unterm; len 9825 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 9829 src/simh/scp.c sim_debug (reason, dptr, "%s %s %slen: %08X\n", sim_uname(uptr), txt, position, (unsigned int)len); len 9830 src/simh/scp.c if (data && len) { len 9870 src/simh/scp.c for (i=same=0; i<len; i += 16) { len 9879 src/simh/scp.c group = (((len - i) > 16) ? 16 : (len - i)); len 9922 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), (unsigned int)(len-1)); len 9967 src/simh/scp.c size_t len; len 9994 src/simh/scp.c static void appendText (TOPIC *topic, const char *text, size_t len) len 9998 src/simh/scp.c if (!len) len 10001 src/simh/scp.c newt = (char *)realloc (topic->text, topic->len + len +1); len 10008 src/simh/scp.c memcpy (newt + topic->len, text, len); len 10009 src/simh/scp.c topic->len +=len; len 10010 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 1136 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 1144 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 114 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 300 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 307 src/simh/sim_tape.c sim_data_trace(ctx->dptr, uptr, (detail ? data : NULL), "", len, txt, reason); len 3383 src/simh/sim_tmxr.c int32 i, len; len 3387 src/simh/sim_tmxr.c len = vsnprintf (buf, bufsize-1, fmt, arglist); len 3391 src/simh/sim_tmxr.c if ((len < 0) || (len >= bufsize-1)) { len 3395 src/simh/sim_tmxr.c if (bufsize < len + 2) len 3396 src/simh/sim_tmxr.c bufsize = len + 2; len 3418 src/simh/sim_tmxr.c for (i = 0; i < len; ++i) {