Newer
Older
antarktida-shell / src / ANTbin.c
@Master-Lamasster Master-Lamasster 5 days ago 436 bytes Ant_sh PRE-Alpha 0.6.0 P.t 2
#include <string.h>
#include "ANTbin.h"

const ANTbin_t ANTbin[] = {
    { "ver",  ANTbin_ver  },
    { "help", ANTbin_help },
    { "antf", ANTbin_antf },
    { "ptest", ANTbin_ptest },
    { "cfg", ANTbin_cfg },
    { NULL,   NULL        }
};

ANTbin_fn ANTbin_find(const char *name) {
    for (int i = 0; ANTbin[i].name != NULL; i++)
        if (strcmp(ANTbin[i].name, name) == 0)
            return ANTbin[i].fn;
    return NULL;
}