6 int sorter(const void *a
, const void *b
) {
7 return *(unsigned char *)a
- *(unsigned char *)b
;
15 while ((nread
= getline(&line
, &len
, stdin
)) >= 0) {
18 line
[nread
- 1] = ' ';
21 while ((space
= memchr(cur
, ' ', line
+ nread
- cur
))) {
22 qsort(cur
, space
- cur
, 1, sorter
);
27 while ((space
= strchr(cur
, ' '))) {
28 if (space
- line
== nread
- 1)
30 char *candidate
= space
;
31 while ((candidate
= memmem(candidate
+ 1, line
+ nread
- candidate
- 1,
32 cur
, space
- cur
+ 1))) {
33 if (candidate
[-1] == ' ') {