C++判斷是不是IP地址

判斷是不是IP地址code bool isIPAddress(const char *s) { const char *pChar; bool rv = true; int tmp1, tmp2, tmp3, tmp4, i; while( 1 ) { i = sscanf(s, "%d.%d.%d.%d", &tmp1, &tmp2, &
相關文章
相關標籤/搜索