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

📄 testinfo.c

📁 详细介绍了一篇关于pci开发的接口芯片
💻 C
字号:
/*
	testinfo.c

	testinfo() common function for tests to return information
	as to something that happened that did not cause a fatal
	error - such as the inability to run a test due to 
	improper configuration.

	The main test program will always set the variable "test_has_info_did_not_run"
	to FALSE. testinfo() will set this variable to TRUE so the
	main test handler can handle it.

	The global string "infostring" can be used to put this kind
	of informational text.

	Entry:	Only called if no fatal test error.
	Return:	FALSE
*/

#include <stdtypes.h>
#include <stdio.h>
#include <string.h>

/* non-standard includes... */
#include <lib.h>

extern int test_has_info_did_not_run;
extern CHAR infostring[];

int testinfo( CHAR *text )
{
	if ( text != NULL )
		strcat( infostring, text );
	test_has_info_did_not_run = TRUE;
	return TRUE;
}

⌨️ 快捷键说明

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