view modules/xstrtoumax @ 40215:88b18d82fa61

crypto/des: Fix undefined behaviour. * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid shift operations on 'int'.
author Bruno Haible <bruno@clisp.org>
date Sat, 09 Mar 2019 22:21:25 +0100
parents 19c2e5121b2f
children
line wrap: on
line source

Description:
Convert string to 'uintmax_t', with error checking.

Files:
lib/xstrtoumax.c

Depends-on:
xstrtol
strtoumax

configure.ac:

Makefile.am:
lib_SOURCES += xstrtoumax.c

Include:
"xstrtol.h"

License:
GPL

Maintainer:
Paul Eggert