suse man page for strict_strtoull

Query: strict_strtoull

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

STRICT_STRTOULL(9)					     Basic C Library Functions						STRICT_STRTOULL(9)

NAME
strict_strtoull - convert a string to an unsigned long long strictly
SYNOPSIS
int strict_strtoull(const char * cp, unsigned int base, unsigned long long * res);
ARGUMENTS
cp The string to be converted base The number base to use res The converted result value
DESCRIPTION
strict_strtoull converts a string to an unsigned long long only if the string is really an unsigned long long string, any string containing any invalid char at the tail will be rejected and -EINVAL is returned, only a newline char at the tail is acceptible because people generally
CHANGE A MODULE PARAMETER IN THE FOLLOWING WAY
echo 1024 > /sys/module/e1000/parameters/copybreak echo will append a newline to the tail of the string. It returns 0 if conversion is successful and *res is set to the converted value, otherwise it returns -EINVAL and *res is set to 0. simple_strtoull just ignores the successive invalid characters and return the converted value of prefix part of the string.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 STRICT_STRTOULL(9)
Related Man Pages
strtoull(3) - mojave
strtouq(3) - osx
strtoul(3) - freebsd
strtoull(3) - freebsd
strtouq(3) - freebsd
Similar Topics in the Unix Linux Community
Change directory error
Cut command on RHEL 6.8 compatibility issues
Update kernel Linux without reboot?!
SOCKS proxy & PAM configuration exposure
Shopt -s histappend