lib: Add flag definitions to control the internal string to int conversion routines
commit7fd0cd02b75782dc6e9a4755d3404e738a92e719
authorSwen Schillig <swen@linux.ibm.com>
Tue, 25 Jun 2019 08:25:08 +0000 (25 10:25 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 30 Jun 2019 11:32:18 +0000 (30 11:32 +0000)
tree5942d409584e47d3a004ca1a27d1fc00ee10a260
parentba021e3cfb2d8497f0e62001782387547e996ded
lib: Add flag definitions to control the internal string to int conversion routines

The following flags are defined intially

    SMB_STR_STANDARD # raise error if negative or non-numeric
    SMB_STR_ALLOW_NEGATIVE # allow strings with a leading "-"
    SMB_STR_FULL_STR_CONV # entire string must be converted
    SMB_STR_ALLOW_NO_CONVERSION # allow empty strings or non-numeric
    SMB_STR_GLIBC_STANDARD # act exactly as the standard glibc strtoul

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
lib/util/util.h