EDN首页   博客首页

日志档案

发表于 2008-6-14 16:16:28

2

标签: 无标签

Linux編程中遇到的幾個函數

1.atoi函數

This function converts a given string to integer

int atoi(const char *sz);

returns the string's integer value

2.memset函數

set buffers to a specified character

memset{

      void *dest,//pointer to destination

     int c,// character to set

    size_t count // number of character

     }

return the value of dest

3. htonl /htons

 convert a u-long/u-short from host to TCP/IP network byte order,which is big-endian

u_long htonl{  u_long hostlong}

u_short htonl{  u_short hostlong}

4.fcntl 整理中

系统分类: 自由话题   |   用户分类: Linux   |   来源: 转贴   |   【推荐给朋友】   |   【添加到收藏夹】

    阅读(252)    回复(0)  

投一票您将和博主都有获奖机会!