012fc7b748fbe037ffbf27113971d0c29daa20d1
[reactos.git] / rostests / apitests / crt / mbstowcs.c
1 /*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for mbstowcs
5 */
6
7 #include <apitest.h>
8
9 #define WIN32_NO_STATUS
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <specstrings.h>
13
14 #define StrROS "ReactOS"
15
16
17 START_TEST(mbstowcs)
18 {
19 size_t len;
20
21 len = mbstowcs(NULL, StrROS, sizeof(StrROS) / sizeof(StrROS[0]));
22 ok(len == 7, "Got len = %u, excepting 7\n", len);
23 len = mbstowcs(NULL, StrROS, sizeof(StrROS) / sizeof(StrROS[0]) - 1);
24 ok(len == 7, "Got len = %u, excepting 7\n", len);
25 }