]> diplodocus.org Git - nmh/blobdiff - sbr/path.c
strindex.c: Move interface to own file.
[nmh] / sbr / path.c
index ecd2eb817375d6c0a3635d41f0a23a43a56535fa..a6568db8df52ec828bfb376f238d9e5a32dbb636 100644 (file)
@@ -5,8 +5,11 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "ssequal.h"
+#include "getfolder.h"
+#include "path.h"
+#include "h/utils.h"
 #include "m_maildir.h"
 
 #define        CWD     "./"
@@ -22,12 +25,16 @@ static char *pwds;
 static char *expath(char *,int);
 static void compath(char *);
 
+
+/* Return value must be free(3)'d. */
 char *
 pluspath(char *name)
 {
        return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF);
 }
 
+
+/* Return value must be free(3)'d. */
 char *
 path(char *name, int flag)
 {
@@ -42,6 +49,7 @@ path(char *name, int flag)
 }
 
 
+/* Return value must be free(3)'d. */
 static char *
 expath (char *name, int flag)
 {