/* Prepare lines for shuffling - either: */
if (opts & OPT_e) {
/* make lines from command-line arguments */
-
numlines = argc;
lines = argv;
} else
numlines = (hi+1) - lo;
lines = xmalloc(numlines * sizeof(lines[0]));
for (i = 0; i < numlines; i++) {
- lines[i] = xstrdup(utoa(lo));
+ lines[i] = (char*)(uintptr_t)lo;
lo++;
}
} else {
eol = '\0';
for (i = 0; i < numlines; i++) {
- printf("%s%c", lines[i], eol);
+ if (opts & OPT_i)
+ printf("%u%c", (unsigned)(uintptr_t)lines[i], eol);
+ else
+ printf("%s%c", lines[i], eol);
}
fflush_stdout_and_exit(EXIT_SUCCESS);