Talk:Strtol

"zero (0) is returned and the global variable errno is set to EINVAL." Says who? JonathonReinhart (talk) 23:50, 26 October 2010 (UTC)

"Upon successful completion strtol returns the converted value, if any. If no conversion could be performed, 0 is returned and errno may be set to [EINVAL]." From the first reference. Also "Because 0, LONG_MIN and LONG_MAX are returned on error and are also valid returns on success, an application wishing to check for error situations should set errno to 0, then call strtol, then check errno." 12.43.131.254 (talk) 16:31, 14 June 2011 (UTC)