⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clear_menu.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lintstatic	char	sccsid[] = "@(#)clear_menu.c 1.1 92/07/30";#endif/* *	Name:		clear_menu.c * *	Description:	Clear a menu. * *	Call syntax:	clear_menu(menu_p); * *	Parameters:	menu *		menu_p; */#include <curses.h>#include "menu.h"voidclear_menu(menu_p)	menu *		menu_p;{	menu_file *	file_p;			/* ptr to a file object */	menu_item *	item_p;			/* ptr to a menu item */	menu_string *	string_p;		/* ptr to a string */	if (menu_p->m_active == NOT_ACTIVE)		return;	for (string_p = menu_p->m_mstrings; string_p;	     string_p = string_p->ms_next) {		clear_menu_string(string_p);	}	for (file_p = menu_p->m_files; file_p;	     file_p = file_p->mf_next) {		clear_menu_file(file_p);	}	for (item_p = menu_p->m_items; item_p;	     item_p = item_p->mi_next) {		clear_menu_item(item_p);	}	if (menu_p->m_finish)		clear_form_yesno(menu_p->m_finish);} /* end clear_menu() */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -