/menu

cmdline menu libary

Primary LanguageCApache License 2.0Apache-2.0

menu

cmdline menu libary

example code

#include <stdio.h>
#include <stdlib.h>
#include "menu.h"

int Quit(int argc, char *argv[])
{
    /* add XXX clean ops */
    exit(0);
}

int main()
{

    MenuConfig("version","XXX V1.0(Menu program v1.0 inside)",NULL);
    MenuConfig("quit","Quit from XXX",Quit);
    
    ExecuteMenu();
}

User Links