blob: 5c831f9f31a044a910c8a5e357f6a4f3c03e976a [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <keymap.h>
int main(int argc, char **argv)
{
struct lk_ctx ctx;
lkfile_t f;
lk_init(&ctx);
f.pipe = 0;
strcpy(f.pathname, argv[1]);
f.fd = fopen( argv[1], "r");
lk_parse_keymap(&ctx, &f);
lk_dump_ctable(&ctx, stdout);
lk_free(&ctx);
return 0;
}