I\'m interested in mathematics and Daoism. Welcome to talk about these subjects with me.
发布时间:2013-01-31 13:37:01
/* * return value: * 1: succ * 0: not * */static int is_valid_ip_addr(const char* ip){ const char* str = ip; int i = 0; int j = 0; int number = 0; int number_count = 0; if(str[0] == '.') return 0; while(ip[i] != '\0') {if (number_count == 4){ return.........【阅读全文】
发布时间:2013-01-15 11:22:53
Memcheck将内存泄露分为两种,一种是可能的内存泄露(Possibly lost),另外一种是确定的内存泄露(Definitely lost)。Possibly lost 是指仍然存在某个指针能够访问某块内存,但该指针指向的已经不是该内存首地址。Definitely lost 是指已经不能够访问这块内存。而Definitely.........【阅读全文】