/* Place code to cleanup for application and exit here */
}
/*----------------------------------------------------------------------------*
* print_error
*
* Print the error message corresponding to the status code specified if
* the status is non-zero.
*----------------------------------------------------------------------------*/
static void print_error( char *fun, int status )
{
if ( status != 0 )
{
char msg[133];
/*----------------------------------------------------------------------------*
* get_button_id
*
* Input:
* prompt - Cue prompt
*
* Output:
* name - Button name specified by the user
* id - ID corresponding the button name specified by the user
*
* Return:
* Response
* 1 = Back
* 2 = Cancel
* 3 = No data returned
* 5 = Data returned
*
*----------------------------------------------------------------------------*/
static int get_button_id( char *prompt, char *name, int *id )
{
int response = 0;
int len = 0;
/*----------------------------------------------------------------------------*
* SAMPLE_APP__action1
*
* Allow the user to ask for the button ID corresponding to a button name
*----------------------------------------------------------------------------*/
static UF_MB_cb_status_t SAMPLE_APP__action1(
UF_MB_widget_t widget,
UF_MB_data_t client_data,
UF_MB_activated_button_p_t call_button )
{
UF_MB_cb_status_t cb_status = UF_MB_CB_CONTINUE;
char name[133] = "";
int id = 0;
int response = 0;