strtoul(nptr, endptr, ...) will set *endptr to nptr in the case of where no digits were read from the string. E.g. "foo:bar" should trigger an error, instead of being read as "0:0" and allowed through. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>dev
parent
f6051cbab8
commit
9c09fe70c7
Loading…
Reference in new issue