hostname.c
来自「linux下qmail的源码 本人加了一些注释」· C语言 代码 · 共 18 行
C
18 行
#include "substdio.h"#include "subfd.h"#include "readwrite.h"#include "exit.h"char host[256];void main(){ host[0] = 0; /* sigh */ gethostname(host,sizeof(host)); host[sizeof(host) - 1] = 0; substdio_puts(subfdoutsmall,host); substdio_puts(subfdoutsmall,"\n"); substdio_flush(subfdoutsmall); _exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?