Created pluspath function to check for '+' prefix and change flag for
[mmh] / sbr / path.c
index df5d963..7475fa0 100644 (file)
@@ -3,6 +3,10 @@
  * path.c -- return a pathname
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -22,6 +26,11 @@ static char *pwds;
 static char *expath(char *,int);
 static void compath(char *);
 
+char *
+pluspath(char *name)
+{
+       return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF);
+}
 
 char *
 path(char *name, int flag)