'nl' now supports multi-byte --section-delimiter characters.
+ 'shuf -i' now operates up to two times faster on systems with unlocked stdio
+ functions.
+
'wc -l' now operates up to three times faster on hosts that support Neon
instructions.
for (size_t i = 0; i < n_lines; i++)
{
unsigned long int n = lo_input + permutation[i];
- if (printf ("%lu%c", n, eolbyte) < 0)
+ char buf[INT_BUFSIZE_BOUND (uintmax_t)];
+ if (fputs (umaxtostr (n, buf), stdout) < 0
+ || fputc (eolbyte, stdout) < 0)
return -1;
}
for (size_t i = 0; i < count; i++)
{
unsigned long int j = lo_input + randint_choose (s, range);
- if (printf ("%lu%c", j, eolbyte) < 0)
+ char buf[INT_BUFSIZE_BOUND (uintmax_t)];
+ if (fputs (umaxtostr (j, buf), stdout) < 0
+ || fputc (eolbyte, stdout) < 0)
return -1;
}