Lines Matching refs:len
92 unsigned int len = 0, size = 0, chunksize = BUFSIZ;
100 if (len + chunksize > size) {
101 size = len + (chunksize * 2);
109 if (fgets(&new_result[len], chunksize, fp) == NULL) {
128 * do the strrchr() on `&result[len]' so that NUL's that
131 newline = strrchr(&result[len], '\n');
133 len = newline - result;
139 len -= 2;
147 len += strlen(&result[len]);
246 * Convert an object of `len' bytes pointed to by `srcraw' between
247 * network-order and host-order and store in `dstraw'. The length `len'
255 nhconvert(void *dstraw, const void *srcraw, size_t len)
263 * If both `srcraw' and `dstraw' are 32-bit aligned and `len' is 4,
266 if (IS_P2ALIGNED(dstraw, 4) && IS_P2ALIGNED(srcraw, 4) && len == 4) {
274 for (i = 0; i < len / 2; i++) {
276 b2 = src[len - i - 1];
278 dst[len - i - 1] = b1;
282 (void) memmove(dstraw, srcraw, len);