⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gethostname.c

📁 关系型数据库 Postgresql 6.5.2
💻 C
字号:
/* $Id: gethostname.c,v 1.4 1998/09/01 03:24:25 momjian Exp $ */#include <sys/types.h>#include <string.h>#include <sys/utsname.h>#include "config.h"intgethostname(char *name, int namelen){	static struct utsname mname;	static int	called = 0;	if (!called)	{		called++;		uname(&mname);	}	strncpy(name, mname.nodename, (SYS_NMLN < namelen ? SYS_NMLN : namelen));	return 0;}

⌨️ 快捷键说明

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