Chinaunix首页 | 论坛 | 博客
  • 博客访问: 375394
  • 博文数量: 48
  • 博客积分: 743
  • 博客等级: 上士
  • 技术积分: 956
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-22 13:51
文章分类

全部博文(48)

文章存档

2015年(3)

2014年(17)

2012年(23)

2011年(5)

发布时间:2014-04-14 10:57:30

dup dup2......【阅读全文】

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

发布时间:2014-04-11 18:07:19

函数原型:        #include        int daemon(int nochdir, int noclose);参数: 输入:nochdir 如果值为0,则将切换工作目录为根目录,否则为程序的工作目录           noclose.........【阅读全文】

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

发布时间:2014-04-08 17:31:23

这篇文章汇总网络编程的各种函数接口,并以超链接的形式链接到具体函数使用说明文章上struct hostent *gethostbyname(const char *hostname);struct hostent *gethostbyaddr(const char *addr, socklen_t len, int family);struct servent *getservbyname(const char *servname, const *protoname);struct servent *.........【阅读全文】

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

发布时间:2014-04-08 15:47:08

#include #include struct hostent *gethostbyname(const char *name);     这个函数的传入值是域名或者主机名,例如"www.google.com"等等。传出值,是一个hostent的结构。如果函数调用失败,将返回NULL。struct h.........【阅读全文】

阅读(4275) | 评论(0) | 转发(1)

发布时间:2014-01-09 11:39:59

函数原型:#include void assert( int expression );参数:输入:expression断言表达式 输出:无返回值:无函数功能说明:    assert的作用是计算表达式 expression ,如果其值为假(即为0),那么它先向stderr打印一条出错信息,然后通过调用 abort 来终止程.........【阅读全文】

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

登录 注册