view modules/xstrtoll @ 40181:4edc083b6693

Add script for running tests under valgrind. * build-aux/run-test: New file, from GNU libunistring. * doc/valgrind-tests.texi: Rewritten to mention alternative approaches as well.
author Bruno Haible <bruno@clisp.org>
date Mon, 04 Feb 2019 22:35:38 +0100
parents 849fcaf40bbf
children
line wrap: on
line source

Description:
Convert string to 'long long' or 'unsigned long long', with error checking.

Files:
lib/xstrtoll.c
lib/xstrtoull.c

Depends-on:
limits-h
strtoll
strtoull
xstrtol

configure.ac:
AC_LIBOBJ([xstrtoll])
AC_LIBOBJ([xstrtoull])
AC_TYPE_LONG_LONG_INT
test $ac_cv_type_long_long_int = no \
  && AC_MSG_ERROR(
      [you lack long long support; required by gnulib's xstrtoll module])

Makefile.am:

Include:
"xstrtol.h"

License:
GPL

Maintainer:
Jim Meyering