]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxcmd: add cvt{int, long} to convert strings to int and long
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 21 Jun 2017 22:14:29 +0000 (17:14 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 21 Jun 2017 22:14:29 +0000 (17:14 -0500)
commit7f36f379981a9ad6efd38beaaff215b7dc5a5a68
treeb11a1c2c47b475e70919723b4c2e6830f3122d7e
parentfb2bfcdfbb42ee5edb4db9285fe9c9ab2b987d0e
libxcmd: add cvt{int, long} to convert strings to int and long

Create some helper functions to convert strings to int or long
in a standard way and work around problems in the C library
atoi/strtol functions.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/input.h
libxcmd/input.c