aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/yow.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib-src/yow.c b/lib-src/yow.c
index cbcf9f4c84c..0f289a19358 100644
--- a/lib-src/yow.c
+++ b/lib-src/yow.c
@@ -18,6 +18,18 @@
18#define YOW_FILE "yow.lines" 18#define YOW_FILE "yow.lines"
19#endif 19#endif
20 20
21#ifdef MSDOS
22#define rootrelativepath(rel) \
23({\
24 static char res[BUFSIZE], *p;\
25 strcpy (res, argv[0]);\
26 p = res + strlen (res);\
27 while (p != res && *p != '/' && *p != '\\' && *p != ':') p--;\
28 strcpy (p + 1, "../");\
29 strcpy (p + 4, rel);\
30 &res;})
31#endif
32
21main (argc, argv) 33main (argc, argv)
22 int argc; 34 int argc;
23 char *argv[]; 35 char *argv[];