bemenu/client/client.c
Jari Vetoniemi 908749cfdf Add basic API code.
=> bmMenu instancing.
=> "Rendering"
=> bmMenu releasing.
2014-03-28 21:35:32 +02:00

37 lines
638 B
C

/**
* @file client.c
*
* Sample client using the libbemenu.
* Also usable as dmenu replacement.
*/
#include <stdlib.h>
#include <bemenu.h>
/**
* Main method
*
* This function gives and takes the life of our program.
*
* @param argc Number of arguments from command line
* @param argv Pointer to array of the arguments
* @return exit status of the program
*/
int main(int argc, char **argv)
{
(void)argc, (void)argv;
bmMenu *menu = bmMenuNew(BM_DRAW_MODE_NONE);
if (!menu)
return EXIT_FAILURE;
bmMenuRender(menu);
bmMenuFree(menu);
return EXIT_SUCCESS;
}
/* vim: set ts=8 sw=4 tw=0 :*/