}
#else /* !unix */
char *
-fn_tilde_expand (char *input)
+fn_tilde_expand (const char *input)
{
return xstrdup (input);
}
}
#endif
\f
+#if unix
/* Returns the current working directory, as a malloc()'d string.
From libc.info. */
char *
buffer = xmalloc (size);
}
}
+#else
+char *
+fn_get_cwd (void)
+{
+ int size = 2;
+ char *buffer = xmalloc (size);
+ if ( buffer)
+ {
+ buffer[0]='.';
+ buffer[1]='\0';
+ }
+
+ return buffer;
+
+}
+#endif
\f
/* Find out information about files. */