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, &
相关文章
相关标签/搜索