utils.h

来自「nedit 是一款linux下的开发源码的功能强大的编辑器」· C头文件 代码 · 共 41 行

H
41
字号
/* $Id: utils.h,v 1.11 2002/11/28 23:22:29 yooden Exp $ */#ifndef NEDIT_UTILS_H_INCLUDED#define NEDIT_UTILS_H_INCLUDED#include <sys/utsname.h>#ifdef VMS#include "vmsparam.h"#else#include <sys/param.h>#endif /*VMS*/extern const char *GetCurrentDir(void);extern const char *GetHomeDir(void);extern char *PrependHome(const char *filename, char *buf, int buflen);const char *GetUserName(void);const char *GetNameOfHost(void);extern int Max(int i1, int i2);extern int Min(int i1, int i2);extern int Min3(int i1, int i2, int i3);extern int Max3(int i1, int i2, int i3);const char* GetRCFileName(int type);/* N_FILE_TYPES must be the last entry!! This saves us from counting. */enum {NEDIT_RC, AUTOLOAD_NM, NEDIT_HISTORY, N_FILE_TYPES};/* If anyone knows where to get this from system include files (in a machine   independent way), please change this (L_cuserid is apparently not ANSI) */#define MAXUSERNAMELEN 32/* Ditto for the maximum length for a node name.  SYS_NMLN is not available   on most systems, and I don't know what the portable alternative is. */#ifdef SYS_NMLN#define MAXNODENAMELEN SYS_NMLN#else#define MAXNODENAMELEN (MAXPATHLEN+2)#endif#endif /* NEDIT_UTILS_H_INCLUDED */

⌨️ 快捷键说明

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