Chinaunix首页 | 论坛 | 博客
  • 博客访问: 563202
  • 博文数量: 50
  • 博客积分: 571
  • 博客等级: 中士
  • 技术积分: 1162
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-20 14:01
个人简介

希望成为一个有思想,有信仰的程序设计师。

文章分类

全部博文(50)

文章存档

2016年(2)

2015年(2)

2014年(13)

2013年(10)

2012年(23)

发布时间: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.........【阅读全文】

阅读(1802) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(9200) | 评论(0) | 转发(0)

发布时间: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;/*类型的强制转换.........【阅读全文】

阅读(3550) | 评论(0) | 转发(0)

发布时间: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地址字符.........【阅读全文】

阅读(12633) | 评论(0) | 转发(3)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册