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: test3.c
8**
9** Purpose: Test that passes CP_ACP to GetCPInfo, verifying the results.
10**
11**
12**==========================================================================*/
13
14#include <palsuite.h>
15
16/* Currently only one CodePage "CP_ACP" is supported by the PAL */
17
18int __cdecl main(int argc, char *argv[])
19{
20 CPINFO cpinfo;
21
22 /* Initialize the PAL.
23 */
24 if (PAL_Initialize(argc, argv))
25 {
26 return FAIL;
27 }
28
29 /* Test GetCPInfo with CP_ACP.
30 */
31 if (!GetCPInfo(CP_ACP, &cpinfo))
32 {
33 Fail("GetCPInfo() unable to get info for code page %d!\n", CP_ACP);
34 }
35
36 /* Terminate the PAL.
37 */
38 PAL_Terminate();
39 return PASS;
40}
41
42