摘要:
int __ns8__GetNTP(struct soap* soap, struct _ns8__GetNTP *ns8__GetNTP, struct _ns8__GetNTPResponse *ns8__GetNTPResponse) { printf("%s\n",__FUNCTION__); readIPaddr(); //read NTP configuration struct ns3__NTPInformation *pNTPInformation; pNTPInformation=(struct n... 阅读全文
摘要:
#include <stdio.h>int is_valid_ip(const char *ip) { int section = 0; //每一节的十进制值 int dot = 0; //几个点分隔符 int last = -1; //每一节中上一个字符 while(*ip) { if(*ip == '.') { dot++; if(dot > 3) { return 0; } ... 阅读全文