c語言將16進制轉換成10進制

前言 要轉換的字符串中包含可選的前綴0x或者0X,git 代碼 /* * Created by sutaoyu on 2018/10/2 * */ #include<stdio.h> #include<ctype.h> #define YES 1 #define NO 0 int htoi(char s[]) { int hexdigit, i, inhex, n; i
相關文章
相關標籤/搜索