Advertisement
freestyler7

test.c

Aug 7th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <newt.h>
  3.  
  4. int main(void) {
  5.  
  6.     int selection;
  7.     char *list_entries[] = { "One", "Two", "Three", "Four", "Five", "Six", "Seven", NULL };
  8.  
  9.     newtInit();
  10.     newtCls();
  11.     newtPushHelpLine(NULL);
  12.  
  13.     newtWinMenu("List", "test list", 40, 0, 0, 5, list_entries, &selection, "Ok", "Cancel", NULL);
  14.  
  15.     newtFinished();
  16.     puts(list_entries[selection]);
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement