Yet another attempted fix for 434383: menus showing up as blocks.
[nedit.git] / util / utils.h
blobb5bea193e2bd194f1fa2b7a47f01d89e9aca33cf
1 /* $Id: utils.h,v 1.5 2001/12/13 13:27:01 amai Exp $ */
2 #ifndef _UTILS_H
3 #define _UTILS_H
5 extern const char *GetCurrentDir(void);
6 extern const char *GetHomeDir(void);
7 extern char *PrependHome(const char *filename, char *buf, int buflen);
8 const char *GetUserName(void);
9 const char *GetHostName(void);
10 extern int Max(int i1, int i2);
11 extern int Min(int i1, int i2);
12 extern int Min3(int i1, int i2, int i3);
13 extern int Max3(int i1, int i2, int i3);
16 /* If anyone knows where to get this from system include files (in a machine
17 independent way), please change this (L_cuserid is apparently not ANSI) */
18 #define MAXUSERNAMELEN 32
20 /* Ditto for the maximum length for a node name. SYS_NMLN is not available
21 on most systems, and I don't know what the portable alternative is. */
22 #ifdef SYS_NMLN
23 #define MAXNODENAMELEN SYS_NMLN
24 #else
25 #define MAXNODENAMELEN (MAXPATHLEN+2)
26 #endif
28 #endif /* _UTILS_H */