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: test1.c
8**
9** Purpose:
10** Check the length of a string and the length of a 0 character string to
11** see that this function returns the correct values for each.
12**
13**
14**==========================================================================*/
15
16#include <palsuite.h>
17
18int __cdecl main(int argc, char *argv[])
19{
20 if (PAL_Initialize(argc, argv))
21 {
22 return FAIL;
23 }
24
25 if (strlen("foo") != 3)
26 Fail("ERROR: strlen(\"foo\") != 3\n");
27
28 if (strlen("") != 0)
29 Fail("ERROR: strlen(\"\") != 0\n");
30
31 PAL_Terminate();
32 return PASS;
33}
34