📄 getaddrinfotest.cpp
字号:
/* Sample program for configure to test for getaddrinfo on the unix platform. we check for all structures and functions required. */#include <sys/types.h>#include <sys/socket.h>#include <netdb.h>int main(){ addrinfo *res = 0; if (getaddrinfo("foo", 0, 0, &res) == 0) freeaddrinfo(res); gai_strerror(0); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -