Mercurial > hg > Applications > mh
view sbr/m_getfolder.c @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line source
/* m_getfolder.c - get the current folder */ #include "../h/mh.h" #include <stdio.h> char *m_getfolder() { register char *folder; if (((folder = m_find (pfolder)) == NULL && (folder = m_find (inbox)) == NULL) || *folder == 0) folder = defalt; if (strlen(folder) >= BUFSIZ / 4) adios (NULLCP, "%s too long", pfolder); return folder; }