/* Test program for user-defined character maps.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1999-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>.
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307 USA. */
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
#include <locale.h>
#include <stdio.h>
#include <wchar.h>
#include <wctype.h>
-int
-main (void)
+static int
+do_test (void)
{
char buf[30];
wchar_t wbuf[30];
}
wch = towctrans (L'A', t);
- printf ("towctrans (L'A', t) = %c\n", wch);
+ printf ("towctrans (L'A', t) = %lc\n", wch);
if (wch != L'B')
errors = 1;
wch = towctrans (L'B', t);
- printf ("towctrans (L'B', t) = %c\n", wch);
+ printf ("towctrans (L'B', t) = %lc\n", wch);
if (wch != L'C')
errors = 1;
return errors;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"