Lines Matching refs:length
66 size_t length, freeCount;
76 if (scanned + cbPtr->length > offset) {
79 scanned += cbPtr->length;
89 length = cbPtr->length - (offset - scanned);
91 if (length > freeCount) {
95 strncpy(destPtr, srcPtr, length);
96 destPtr += length;
97 count += length;
98 freeCount -= length;
105 length = cbPtr->length;
142 size_t length;
146 length = strlen(p);
147 length -= offset;
148 if (length <= 0) {
151 if (length > maxBytes) {
152 length = maxBytes;
154 strncpy(buffer, p, length);
155 return length;
402 cbPtr->length = strlen(buffer);
403 cbPtr->buffer = (char *) ckalloc((unsigned) (cbPtr->length + 1));
440 size_t length;
451 length = strlen(argv[1]);
452 if ((c == 'a') && (strncmp(argv[1], "append", length) == 0)) {
462 length = strlen(args[0]);
463 if ((c == '-') && (length == 2)) {
468 if ((c == 'd') && (strncmp(args[0], "-displayof", length) == 0)) {
471 && (strncmp(args[0], "-format", length) == 0)) {
474 && (strncmp(args[0], "-type", length) == 0)) {
504 } else if ((c == 'c') && (strncmp(argv[1], "clear", length) == 0)) {
515 length = strlen(args[0]);
516 if ((c == 'd') && (strncmp(args[0], "-displayof", length) == 0)) {