Ncurses and menus

We are converting an existing application to nucrses. Currently, we are
working on the menus. We have reviewed the docs on ncurses specifically
the menu section. But, sadly we have not succeeded. Does anyone know
of a working example of ncurses menus. We are developing currently in
QNX4 with plans to support NTO2.

The trouble is procedural at this point. What order to do things. We
have a simple little menu test program that we wrote. The compiler and
linker like it. But, runtime fails. First, we do a initscr, then a
newitem and the failure occurs on the third command newmenu. This is
the not knowing phase of a new function or in this case a set of
functions.

Thanks for the help.