Split commands into different files

This commit is contained in:
Joseph Redmon
2015-03-06 10:49:03 -08:00
parent 26cddc6f93
commit 2313a8eb54
8 changed files with 887 additions and 870 deletions

View File

@ -9,6 +9,22 @@
#include "utils.h"
char *basecfg(char *cfgfile)
{
char *c = cfgfile;
char *next;
while((next = strchr(c, '/')))
{
c = next+1;
}
c = copy_string(c);
next = strchr(c, '_');
if (next) *next = 0;
next = strchr(c, '.');
if (next) *next = 0;
return c;
}
int alphanum_to_int(char c)
{
return (c < 58) ? c - 48 : c-87;