Query: strict_strtoul
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STRICT_STRTOUL(9) Basic C Library Functions STRICT_STRTOUL(9)NAMEstrict_strtoul - convert a string to an unsigned long strictlySYNOPSISint strict_strtoul(const char * cp, unsigned int base, unsigned long * res);ARGUMENTScp The string to be converted base The number base to use res The converted result valueDESCRIPTIONstrict_strtoul converts a string to an unsigned long only if the string is really an unsigned 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 generallyCHANGE A MODULE PARAMETER IN THE FOLLOWING WAYecho 1024 > /sys/module/e1000/parameters/copybreak echo will append a newline to the tail. 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_strtoul just ignores the successive invalid characters and return the converted value of prefix part of the string.COPYRIGHTKernel Hackers Manual 2.6. July 2010 STRICT_STRTOUL(9)
Related Man Pages |
---|
strtoul(3) - mojave |
strtoumax(3) - mojave |
strtoumax(3) - osx |
strtouq(3) - osx |
strtouq(3) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Getting command output to putty window title. |
Update kernel Linux without reboot?! |
Tar Command |
The Future of the PM (Private Message) System at UNIX.com |
Shopt -s histappend |