Removed all references to ctdl_hlp_dir. cmd_mesg() and cmd_emsg() now only look...
[citadel.git] / citadel / support.c
index 56941c36fb23abac8f365b3d20c4dc44ffd21588..af155d31df92298178ab5e9c03a742be304fa133 100644 (file)
@@ -81,28 +81,3 @@ int getstring(FILE *fp, char *string)
                } while(string[0]=='#');
        return(strlen(string));
 }
-
-
-
-
-/*
- * mesg_locate()  -  locate a message or help file, case insensitive
- */
-void mesg_locate(char *targ, size_t n, const char *searchfor,
-                int numdirs, const char * const *dirs)
-{
-       int a;
-       char buf[SIZ];
-       struct stat test;
-
-       for (a=0; a<numdirs; ++a) {
-               snprintf(buf, sizeof buf, "%s/%s", dirs[a], searchfor);
-               if (!stat(buf, &test)) {
-                       snprintf(targ, n, "%s/%s", dirs[a], searchfor);
-                       return;
-               }
-       }
-       strcpy(targ,"");
-}
-
-