216
"C" Programming Guide For Optimus S/R
}
Example
void FuncUpload (void)
{
/* to do: add your own program code here */
}
void FuncDownload (void)
{
/* to do: add your own program code here */
}
prc_menu (&MyMenu);
Description
This routine creates a user-defined menu. SMENU and MENU structures are
defined in the header files. User can simply fill the MENU structure and call
prc_menu to build a hierarchy menu-driven user interface.
If successful, it returns 1.
Return
Otherwise, it returns 0 to indicate the ESC key was pressed to abort operation.
/* process MyMenu menu */