summaryrefslogtreecommitdiff
path: root/tests/test-xstrtoll.c
Commit message (Collapse)AuthorAgeFilesLines
* xstrtoll-tests: use %lld for long longPaul Eggert2022-01-161-1/+1
| | | | | | | | | * tests/test-xstrtoll.c, tests/test-xstrtoull.c (__spec): Do not assume long long is 64 bits, or that exact-width 64-bit types exist. Although these assumptions are true on current Gnulib platforms they are not true in general. Also, GCC warns if PRId64 is "ld" but intmax_t is long long even when long and long long are both 64 bits.
* xstrtoll: new moduleJim Meyering2010-01-251-0/+4
* modules/xstrtoll: New file. * MODULES.html.sh (Numeric conversion functions): Add xstrtoll. * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull. * lib/xstrtoll.c, lib/xstrtoull.c: New files. ./configure fails if you use this module and lack "long long". * modules/xstrtoll-tests: New module. * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files. * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the new init.sh-based test framework.