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 整理中
文章评论(0条评论)
登录后参与讨论