Lines Matching defs:offsets
59 static uint_t *offsets; /* array of word-offsets into "buf" */
60 static uint_t off_idx = 0; /* first free index in offsets array */
61 static size_t off_size = 0; /* offsets array size */
110 if (fprintf(tmpfp[tmpfp_idx], "%s\n", &buf[offsets[i++]]) < 0) {
127 * insert an offset into the offsets-array. If the offsets-array is out of
140 tmp = realloc(offsets, sizeof (uint_t) * off_size);
143 free(offsets);
145 offsets = NULL;
148 offsets = tmp;
151 offsets[off_idx++] = off;
159 * words in "buf" and insert each of them into the offsets-array.
219 * We maintain an array of offsets into the buffer where each word starts
267 qsort((void *)offsets, off_idx, sizeof (int), compare);
278 if (offsets != NULL)
279 free(offsets);
280 offsets = NULL;