/* Test program for the wide character stream functions handling larger
amounts of text.
- Copyright (C) 2000-2014 Free Software Foundation, Inc.
+ Copyright (C) 2000-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>.
#define SIZE 210000
-int
-main (void)
+static int
+do_test (void)
{
char name[] = "/tmp/widetext.out.XXXXXX";
char mbbuf[SIZE];
{
if (fgetws (wcp, &wc2buf[wcsize] - wcp + 1, fp) == NULL)
{
- printf ("%u: short read using fgetws (only %Zd of %Zd)\n",
+ printf ("%u: short read using fgetws (only %td of %Zd)\n",
__LINE__, wcp - wc2buf, wcsize);
status = 1;
break;
return status;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"