摘要:
1 /* 2 StrToInt: 将字符串转换为整型数 3 */ 4 5 #include <stdio.h> 6 7 unsigned long int str_to_int(const char *source); 8 9 int main(int argc,char *argv[])10 {11 char str[5]="1234";12 unsigned long int test;13 14 test=str_to_int(str);15 printf("%d\n",test);16 17 return 0;18 }19 2... 阅读全文