C语言字符串转换为整数 C语言字符串转换为整数完整源码 C语言字符串转换为整数完整源码 #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /** * the function take a string and return an integer * \param[out] str pointer to