inet.h

来自「Minix3.11的源码。[MINIX 3是一个为高可靠性应用而设计的自由且简洁」· C头文件 代码 · 共 34 行

H
34
字号
/*arpa/inet.h*/#ifndef _ARPA__INET_H#define _ARPA__INET_H#include <stdint.h>/* Open Group Base Specifications Issue 6 (not complete): */#ifndef _IN_ADDR_T#define _IN_ADDR_T/* Has to match corresponding declaration in <netinet/in.h> */typedef uint32_t	in_addr_t;#endif /* _IN_ADDR_T */#ifndef _STRUCT_IN_ADDR#define _STRUCT_IN_ADDR/* Has to match corresponding declaration in <netinet/in.h> */struct in_addr{	in_addr_t	s_addr;};#endif_PROTOTYPE( uint32_t htonl, (uint32_t _hostval)				);_PROTOTYPE( uint16_t htons, (uint16_t _hostval)				);_PROTOTYPE( char *inet_ntoa, (struct in_addr _in)			);_PROTOTYPE( uint32_t ntohl, (uint32_t _netval)				);_PROTOTYPE( uint16_t ntohs, (uint16_t _netval)				);#endif /* _ARPA__INET_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?