wcs.c
来自「ST5518机顶盒系统文件系统源代码!绝对超值!」· C语言 代码 · 共 84 行
C
84 行
/****************************************************************************** File Name : wcs.c Description : Unit test for wide charactor string support.******************************************************************************//* Includes ---------------------------------------------------------------- */#include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <string.h>#include "wrapper.h"#include "hal.h"/* Private Types ----------------------------------------------------------- *//* Private Constants ------------------------------------------------------- *//* Private Variables ------------------------------------------------------- *//* Private Macros ---------------------------------------------------------- *//* Private Function Prototypes --------------------------------------------- */static TestResult_t WCSTest (int TestNo, TestVariant_t Variant);/* Functions --------------------------------------------------------------- *//******************************************************************************Function Name : Example Description : Example test section function. Parameters :******************************************************************************/BOOL WCS (parse_t * pars_p, char *result_sym_p){ char *Description = "Unit Test for the Wide Charactor String support"; TestCall_t TestList[] = { WCSTest, /* Test 001 */ }; GenericTest (pars_p, result_sym_p, Description, TestList, TABLE_LEN(TestList)-1, TEST_VARIANT_A); return (FALSE);}/******************************************************************************Function Name : ExampleTest Description : The actual implementation of the test Parameters :******************************************************************************/static TestResult_t WCSTest(int TestNo, TestVariant_t Variant){ if (Variant == TEST_VARIANT_A) { return(TEST_PASSED); } else { return(TEST_FAILED); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?