]> ncurses.scripts.mit.edu Git - ncurses.git/blob - test/keynames.c
ncurses 5.3
[ncurses.git] / test / keynames.c
1 /*
2  * $Id: keynames.c,v 1.4 2002/09/01 19:42:42 tom Exp $
3  */
4
5 #include <test.priv.h>
6
7 int
8 main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
9 {
10     int n;
11     for (n = -1; n < 512; n++) {
12         char *result = keyname(n);
13         if (result != 0)
14             printf("%d(%5o):%s\n", n, n, result);
15     }
16     ExitProgram(EXIT_SUCCESS);
17 }