h_sort.c | 60 const size_t *linepos; member in struct:context 70 return strcmp(C->buf + C->linepos[*a], C->buf + C->linepos[*b]); 90 size_t *linepos = NULL; local in function:main 185 error = reallocarr(&linepos, nlines, sizeof(linepos[0])); 189 for (p = buf; linepos[i++] = p - buf, (p = strchr(p, '\n')) != NULL;) { 210 &(struct context) { .buf = buf, .linepos = linepos }); 219 printf("%zu %s\n", j, buf + linepos[j]) [all...] |