基本语言细节--C语言标准库函数 atoi () 1. C语言库函数名: atoi,功 能: 把字符串转换成整型数。名字来源:ASCII to integer 的缩写。 原型: int atoi(const char *nptr); 2.下面由自己动手编写一个实现此功能的函数