1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/*============================================================================
6**
7** Source: test10.c
8**
9** Purpose:Tests swscanf with wide characters
10**
11**
12**==========================================================================*/
13
14
15
16#include <palsuite.h>
17#include "../swscanf.h"
18
19int __cdecl main(int argc, char *argv[])
20{
21 if (PAL_Initialize(argc, argv))
22 {
23 return FAIL;
24 }
25
26 DoCharTest(convert("1234"), convert("%C"), "1", 1);
27 DoCharTest(convert("abc"), convert("%2C"), "ab", 2);
28 DoCharTest(convert(" ab"), convert("%C"), " ", 1);
29 DoCharTest(convert("ab"), convert("%hC"), "a", 1);
30 DoWCharTest(convert("ab"), convert("%lC"), convert("a"), 1);
31 DoCharTest(convert("ab"), convert("%LC"), "a", 1);
32 DoCharTest(convert("ab"), convert("%I64C"), "a", 1);
33
34 PAL_Terminate();
35 return PASS;
36}
37