Rechercher une page de manuel
strict_strtol
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
strict_strtol - convert a string to a long strictlySYNOPSIS
- int strict_strtol(const char * cp, unsigned int base, long * res);
ARGUMENTS
cp
- The string to be converted
base
- The number base to use
res
- The converted result value
DESCRIPTION
strict_strtol is similiar to strict_strtoul, but it allows the first character of a string is '-'.
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.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre