绝对正宗的atoi源码,非自己实现
下面是atoi.c源文件#include <ansidecl.h>#include <stdlib.h>#undef atoi/* Convert a string to an int. */intDEFUN(atoi, (nptr), CONST char *nptr){ return((int) strtol(nptr, (char **) NULL, 10));}下面是strtol.c源文件/* Copyright (C) 1991, 1992
原创
2020-08-02 13:42:44 ·
811 阅读 ·
0 评论