/*--------------------------------------------------------------------------- | Facility : libnmenu | Function : int set_menu_pad(MENU *menu, int pad) | | Description : Set the character to be used to separate the item name | from its description. This must be a printable | character. | | Return Values : E_OK - success | E_BAD_ARGUMENT - an invalid value has been passed +--------------------------------------------------------------------------*/ int set_menu_pad(MENU *menu, int pad) { bool do_refresh = (menu != (MENU*)0); if (!isprint((unsigned char)pad)) RETURN(E_BAD_ARGUMENT); Normalize_Menu( menu ); menu->pad = pad; if (do_refresh) Refresh_Menu( menu ); RETURN(E_OK); }
set_menu_pad(MENU * menu, int pad) { bool do_refresh = (menu != (MENU *) 0); T((T_CALLED("set_menu_pad(%p,%d)"), menu, pad)); if (!isprint(UChar(pad))) RETURN(E_BAD_ARGUMENT); Normalize_Menu(menu); menu->pad = pad; if (do_refresh) Refresh_Menu(menu); RETURN(E_OK); }