c语言strtol()函数如何将字符串转换成长整型数。需要引入的头文件:#include <stdlib.h>
定义strtol()函数:long int strtol(const char *nptr, char **endptr, int base);
strtol()函数介绍:strtol()会将参数nptr 字符串根据参数base 来转换成长整型数。参数base 范围从2 至36,或0。参数base 代表采用的进制方式,如base 值为10 则采用10 进制,若base 值为16 则采用16 进制等。当base值为0 时则是采用10 进制做转换,但遇到如’0x’[......]