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

📄 wcs.c

📁 ST5518机顶盒系统文件系统源代码!绝对超值!
💻 C
字号:
/******************************************************************************    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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -