Lines Matching defs:offsets
56 static uint_t *offsets; /* array of word-offsets into "buf" */
57 static uint_t off_idx = 0; /* first free index in offsets array */
58 static size_t off_size = 0; /* offsets array size */
107 if (fprintf(tmpfp[tmpfp_idx], "%s\n", &buf[offsets[i++]]) < 0) {
124 * insert an offset into the offsets-array. If the offsets-array is out of
137 tmp = realloc(offsets, sizeof (uint_t) * off_size);
140 free(offsets);
142 offsets = NULL;
145 offsets = tmp;
148 offsets[off_idx++] = off;
156 * words in "buf" and insert each of them into the offsets-array.
216 * We maintain an array of offsets into the buffer where each word starts
264 qsort((void *)offsets, off_idx, sizeof (int), compare);
275 if (offsets != NULL)
276 free(offsets);
277 offsets = NULL;