head: support counts > 2**64
commit22ac54858cba80dfd32d3d6143476637cf6d68d4
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2024 01:49:54 +0000 (10 18:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 11 Aug 2024 02:30:01 +0000 (10 19:30 -0700)
tree8fe66c6028cbd01feb6a80bf73845eb515767f65
parentf2c84fe630fe930f60bce3d0c632196903d64441
head: support counts > 2**64

* src/head.c (head): Optimize for -n-HUGE, where HUGE exceeds
2**64 - 2.
(string_to_integer): Return UINTMAX_MAX for too-large numbers,
instead of failing.
(main): Omit no-lnger-necessary test for byte count overflow.
NEWS
src/head.c