亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? userinterfaceutilities.c

?? 通訊錄 C語言
?? C
?? 第 1 頁 / 共 2 頁
字號:
    			list will be written to disk and the record will be erased    			completely (undelete not available in this case).  ===============================================================================*/void ui_DeleteEntry(void *Dummy){	struct Record *rec;	int choice;	if (gl_HighestID == 0)	{		printf ("No entries in the database!\n");		io_EnterToContinue();		return;	}		printf("Enter Record ID Number (1-%d, x to exit) >", gl_HighestID);	if ((choice = io_GetInt(gl_HighestID)) == RC_BAD)		return;	if ((rec = li_GetDataPtrByID(gl_AppData.MainList, choice)) == NULL)	{		printf("No such entry: %d\n", choice);		io_EnterToContinue();		return;	}		rec_PrintLong(rec);		if (io_GetYesNo("Confirm Delete (y/n) >") == TRUE)	{		rec->Status = rec->Status | ST_DELETED;		gl_AppData.DataChanged = TRUE;		if (gl_AppCfg.AutoSave) (void)io_WriteAllRecordsToFile(gl_AppData.MainList);	}}/*  =============================================================================== 	Function: 	ui_UndeleteEntry    Args: 		None (NULL Pointer)    Returns: 	Nothing    Purpose:	Gets an ID from the user, and unsets the deleted flag.  ===============================================================================*/void ui_UndeleteEntry(void *Dummy){	struct Record *rec;	int choice;		if (gl_HighestID == 0)	{		printf ("No entries in the database!\n");		io_EnterToContinue();		return;	}		printf("Enter Record ID Number (1-%d, x to exit) >", gl_HighestID);	if ((choice = io_GetInt(gl_HighestID)) == RC_BAD)		return;	if ((rec = li_GetDataPtrByID(gl_AppData.MainList, choice)) == NULL)	{		printf("No such entry: %d\n", choice);		io_EnterToContinue();		return;	}		if (rec->Status & ST_DELETED)	{		rec->Status = rec->Status ^ ST_DELETED;		printf ("Record undeleted\n");		gl_AppData.DataChanged = TRUE;		if (gl_AppCfg.AutoSave) (void)io_WriteAllRecordsToFile(gl_AppData.MainList);	}	else		printf ("Record was not marked for deletion\n");		io_EnterToContinue();	}/*  =============================================================================== 	Function: 	ui_SearchByID    Args: 		None    Returns: 	Nothing    Purpose:	Gets an ID from the user, then display that Record in detail  ===============================================================================*/void ui_SearchByID(void){	struct Record *rec;	int choice;		if (gl_HighestID == 0)	{		printf ("No entries in the database!\n");		io_EnterToContinue();		return;	}	printf("Enter Record ID Number (1-%d, x to exit) >", gl_HighestID);	if ((choice = io_GetInt(gl_HighestID)) == RC_BAD)		return;	if ((rec = li_GetDataPtrByID(gl_AppData.MainList, choice)) == NULL)		printf("No such entry: %d\n", choice);	else rec_PrintLong(rec);	io_EnterToContinue();}/*  =============================================================================== 	Function: 	ui_SearchAll    Args: 		Field type    Returns: 	Nothing    Purpose:	Gets search criteria from user, the traverses the list, short    			printing each record that matches the criteria.  ===============================================================================*/void ui_SearchAll(void *WhichField){	char	buffer[MAXL_FIELD + 1];	int		i, len;	if (gl_HighestID == 0)	{		printf ("No entries in the database!\n");		io_EnterToContinue();		return;	}		if ((enum RECORD_FIELDS)WhichField == RECF_ID) 	{		ui_SearchByID();		return;	}		printf("Enter Criteria >");		if ((len = io_GetLine(buffer, MAXL_FIELD + 1, stdin)) != 0)	{		gl_AppData.SearchField = (enum RECORD_FIELDS)WhichField;		for (i = 0; i < len; i++)	/* convert to lower case for search */			if (isupper(buffer[i])) buffer[i] = tolower(buffer[i]);		strncpy(gl_AppData.SearchText, buffer, MAXL_FIELD + 1);		gl_AppData.LinesDisplayedSoFar = 0;		(void)li_Traverse(gl_AppData.MainList, rec_SearchAndPrint);	}	io_EnterToContinue();}/*  =============================================================================== 	Function: 	ui_DisplayAll    Args: 		None    Returns: 	Nothing    Purpose:	Traverses the list and does a short print of each record  ===============================================================================*/void ui_DisplayAll(void *Dummy){	if (gl_HighestID == 0)	{		printf ("No entries in the database!\n");		io_EnterToContinue();		return;	}		gl_AppData.LinesDisplayedSoFar = 0;	gl_AppData.SearchField = RECF_DUMMY;	(void)li_Traverse(gl_AppData.MainList, rec_SearchAndPrint);	io_EnterToContinue();}/*  =============================================================================== 	Function: 	ui_Save    Args: 		None (NULL Pointer)    Returns: 	Nothing    Purpose:	Gets confirmation from the user, then saves the current list to disk  ===============================================================================*/void ui_Save(void *Dummy){	if (io_GetYesNo("Confirm Save (including purge of deleted records) (y/n) >") == TRUE)	{		(void)io_WriteAllRecordsToFile(gl_AppData.MainList);	}}/*  =============================================================================== 	Function: 	ui_PurgeDeleted    Args: 		None (NULL Pointer)    Returns: 	Nothing    Purpose:	Gets confirmation from the user, then traverses the list,    			removing (free'ing) any records that are marked as deleted  ===============================================================================*/void ui_PurgeDeleted(void *Dummy){	unsigned char status = ST_DELETED;		if (gl_HighestID == 0)	{		printf ("No entries in the database!\n");		io_EnterToContinue();		return;	}		if (io_GetYesNo("Confirm Purge (y/n) >") == TRUE)		gl_AppData.MainList = li_DeleteNodeAndData (gl_AppData.MainList, &status, rec_CompareStatus);}/*  ===============================================================================    Function: 	ui_ShowInfo    Args: 		None (NULL Pointer)    Returns: 	Nothing    Purpose:	Displays stats about the program and the PhoneBook  =============================================================================== */void ui_ShowInfo(void *Dummy){	printf ("--->\n---> **PhoneBook** - Version: %s\n", PRG_VERSION);	printf ("---> Written By *Hammer* for the C Programming Contest\n");	printf ("---> held by http://www.cprogramming.com/cboard/ in May 2002\n");	printf ("---> You can contact the author via email: claw_hammer@hotmail.com\n");	printf ("--->\n---> The PhoneBook datafile is %s\n", STR_FILENAME);	printf ("---> The PhoneBook configuration file is %s\n", STR_CFG_FILENAME);	printf ("--->\n---> There are currently %d entries loaded.\n", li_Count(gl_AppData.MainList));	printf ("--->\n---> This program accepts command line information\n");	printf ("---> For example (assuming the program name is phone.exe):\n");	printf ("--->   >phone.exe hammer tommy\n");	printf ("---> will result in the database being searched for the\n");	printf ("---> names hammer and tommy and the results being displayed.\n");	printf ("---> In this case, the menu is not loaded, and the\n");	printf ("---> program terminates.  This is useful for quick lookups.\n");	printf ("--->\n");	io_EnterToContinue();}/*  =============================================================================== 	Function: 	ui_ToggleAutoSave    Args: 		None (NULL Pointer)    Returns: 	Nothing    Purpose:	Allows the user to turn auto-save off and on.  ===============================================================================*/void ui_ToggleAutoSave(void *Dummy){	printf ("Auto-Save is currently %s\n", (gl_AppCfg.AutoSave)?"On":"Off");	if (io_GetYesNo("Toggle auto-save (y/n) >") == TRUE)	{		gl_AppCfg.AutoSave = ~gl_AppCfg.AutoSave;		printf ("Auto-Save is now %s\n", (gl_AppCfg.AutoSave)?"On":"Off");		io_EnterToContinue();	}}/*  =============================================================================== 	Function: 	ui_SetLinesPerDisplay    Args: 		None (NULL Pointer)    Returns: 	Nothing    Purpose:	Allows the user to set the number of lines displayed in lists    			before a io_EnterToContinue is called.  ===============================================================================*/void ui_SetLinesPerDisplay(void *Dummy){	int Lines;		printf ("This option determines how many lines are output to the screen\nbefore a \"hit enter to continue\" message is displayed\n");	printf ("The current setting is %d\n", gl_AppCfg.LinesPerDisplay);	printf ("Enter a new number or x to exit >");		if ((Lines = io_GetInt(MAX_LINES_PER_PAGE)) == RC_BAD)		return;			gl_AppCfg.LinesPerDisplay = Lines;	printf ("The new setting is %d\n", gl_AppCfg.LinesPerDisplay);	io_EnterToContinue();}/*  =============================================================================== 	Function: 	ui_SetSortBy    Args: 		Field type    Returns: 	Nothing    Purpose:	Allows the user to set the sort order  ===============================================================================*/void ui_SetSortBy(void *WhichField){	gl_AppCfg.SortField = (enum RECORD_FIELDS)WhichField;		printf ("Sorting the data...");	li_Sort (gl_AppData.MainList, rec_Compare); 	printf ("Done!\n");	io_EnterToContinue();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕不卡的av| www.亚洲免费av| 欧美精品久久天天躁| 五月天久久比比资源色| 91在线看国产| 亚洲在线视频网站| 欧美精品v日韩精品v韩国精品v| 亚洲国产成人porn| 精品黑人一区二区三区久久| 国产美女在线观看一区| 国产精品久久久久桃色tv| 91激情五月电影| 日本女人一区二区三区| 久久精品综合网| 色综合久久综合| 亚洲午夜精品一区二区三区他趣| 欧美一区二区视频在线观看2020 | 欧美mv日韩mv| 成人免费毛片高清视频| 亚洲欧美日韩在线播放| 91精品国产综合久久蜜臀| 国产精品一区二区你懂的| 亚洲视频一二三区| 日韩欧美国产精品一区| 成人黄色电影在线| 免费成人在线网站| 亚洲丝袜精品丝袜在线| 日韩一区二区免费视频| eeuss鲁片一区二区三区| 亚洲成av人片在www色猫咪| 91精品国产一区二区人妖| 寂寞少妇一区二区三区| 一区二区激情视频| 久久久久久久久久久99999| 欧美午夜在线一二页| 国产精品911| 亚洲bdsm女犯bdsm网站| 久久精品人人做人人爽97 | 欧美精品一二三区| 粉嫩嫩av羞羞动漫久久久| 亚洲国产一区二区三区| 中文字幕巨乱亚洲| 日韩欧美成人午夜| 精品污污网站免费看| 狠狠色伊人亚洲综合成人| 91蝌蚪国产九色| 《视频一区视频二区| 高清视频一区二区| 久久久综合视频| 高清不卡一区二区在线| 国产日韩欧美激情| 97精品久久久午夜一区二区三区 | 麻豆成人久久精品二区三区红| 国产成人a级片| 亚洲精品一区二区三区99| 亚洲另类春色校园小说| 欧美人体做爰大胆视频| 自拍偷在线精品自拍偷无码专区| 国产精一区二区三区| 欧美精品久久99久久在免费线| 久久蜜桃av一区精品变态类天堂 | 首页国产丝袜综合| 亚洲一区在线观看视频| 国产一区二区三区电影在线观看 | a4yy欧美一区二区三区| 精品一区二区av| 日韩国产欧美在线观看| 亚洲国产日韩a在线播放| 国产精品毛片a∨一区二区三区| 国产精品一区一区| 亚洲国产一区二区三区| 精品国产一区二区三区久久久蜜月| 成人性色生活片| 青娱乐精品在线视频| 欧美一区二区三区视频免费| 国产九色精品成人porny | 精品久久人人做人人爱| 色88888久久久久久影院按摩 | 欧美日韩一区二区三区在线| 91亚洲精品乱码久久久久久蜜桃| 成人激情综合网站| 国产成人aaa| 国产一区二区网址| 国产精品一区二区免费不卡| 丁香激情综合五月| www.欧美色图| 91激情五月电影| 欧美妇女性影城| 日韩午夜在线播放| 久久久电影一区二区三区| 中文字幕第一区二区| 亚洲精品水蜜桃| 亚洲123区在线观看| 国产盗摄女厕一区二区三区| 亚洲一卡二卡三卡四卡五卡| 欧美日韩一二三区| 国产精品亚洲综合一区在线观看| 福利电影一区二区三区| 色国产综合视频| 欧美精品久久99| 久久精品视频在线看| 国产精品成人在线观看| 亚洲国产精品久久久久秋霞影院 | 3d成人h动漫网站入口| 日韩欧美一级片| 国产精品乱人伦中文| 亚洲自拍偷拍九九九| 精品亚洲成a人| 欧美日韩国产a| 国产精品视频一二三| 在线播放91灌醉迷j高跟美女| 欧美日韩黄视频| 日韩免费在线观看| 午夜欧美电影在线观看| 成人一区二区三区在线观看| 中文一区二区完整视频在线观看| 国产精品国产成人国产三级| 亚洲国产精品久久久久婷婷884| 久久99精品视频| 91福利在线看| 26uuu国产日韩综合| 亚洲精品水蜜桃| 国产一区在线观看麻豆| 一本一道久久a久久精品综合蜜臀| 成a人片国产精品| 日韩欧美一级精品久久| 综合色天天鬼久久鬼色| 另类中文字幕网| 色菇凉天天综合网| 精品国产凹凸成av人导航| 亚洲欧洲日韩av| 国内精品视频一区二区三区八戒| 成人免费毛片片v| 精品久久人人做人人爽| 亚洲福利一二三区| 在线亚洲精品福利网址导航| 国产色产综合色产在线视频| 偷拍一区二区三区四区| 97久久超碰精品国产| 中文字幕成人在线观看| 久久国产欧美日韩精品| 欧美日本一道本在线视频| 国产中文字幕精品| 久久女同性恋中文字幕| 国产真实乱子伦精品视频| 欧美精品tushy高清| 中文字幕av资源一区| 亚洲天堂成人网| 成人va在线观看| 国产精品久久久久久久久快鸭| 精品在线一区二区三区| 亚洲男人都懂的| 一二三四社区欧美黄| 日韩理论片中文av| 国产欧美日韩在线| 卡一卡二国产精品 | 国产精品一区二区不卡| 日韩欧美中文字幕一区| 爽好久久久欧美精品| 欧美日韩一区二区三区免费看 | 成人综合在线观看| 久久夜色精品一区| 国产一区二区调教| 国产午夜精品一区二区三区嫩草| 韩国毛片一区二区三区| 欧美mv和日韩mv的网站| 国产一区二区视频在线播放| 国产一区二区三区不卡在线观看| 久久久久国产精品厨房| 不卡视频一二三| 亚洲电影第三页| 国产精品嫩草影院com| 欧美色电影在线| 波多野结衣中文字幕一区二区三区| 国产女人水真多18毛片18精品视频| 91免费精品国自产拍在线不卡| 亚洲电影一区二区三区| 久久久久99精品国产片| 一本一道久久a久久精品| 蜜桃av一区二区| 午夜精品一区二区三区电影天堂 | 欧美群妇大交群中文字幕| 久久国产精品99久久久久久老狼 | 国产精品久久久久婷婷| 精品久久人人做人人爱| 91碰在线视频| 毛片一区二区三区| 一区二区三区四区精品在线视频| 日韩三级免费观看| 欧美视频一区在线| 精品国产不卡一区二区三区| 美国欧美日韩国产在线播放| 欧美日韩一区在线观看| 欧美激情艳妇裸体舞| 国产成人av电影在线播放| 国产精品另类一区| 在线这里只有精品| 奇米精品一区二区三区在线观看 | 99精品欧美一区二区三区小说| 亚洲一区二区三区美女|