希望成为一个有思想,有信仰的程序设计师。
发布时间:2014-10-15 22:11:10
点击(此处)折叠或打开#include /*** * strcmp compare two strings, return less than,equal to , or less than * * Purpose: * strcmp compare two strings and return an in.........【阅读全文】
发布时间:2013-08-07 23:00:12
strtok()的源码:#include static char *olds;#undef strtok/* Parse S into tokens separated by characters in DELIM. If S is NULL, the last string strtok() was called with is&nb.........【阅读全文】
发布时间:2012-06-13 12:33:09
inet_pton的源代码分析(一)http://blog.chinaunix.net/uid-26642637-id-3241576.html本文主要分析函数:static int internal_function inet_pton4(src, dst)假设src=”192.168.0.1”static int internal_function inet_pton4(src, dst)const char *src;u_char *dst;/*类型的强制转换.........【阅读全文】
发布时间:2012-06-13 11:45:48
这个函数的功能:将IP地址从字符串格式转换成网络地址格式,支持Ipv4和Ipv6.函数原型: static int inet_pton(int af, const char *src,void *dst)af:address family(协议族),支持的协议族有下面几种:AF_INET Inetnet的Ipv4协议AF_INET Inetnet的Ipv6协议src:是个指针,指向保存IP地址字符.........【阅读全文】