Deleted Added
full compact
test-mbrtowc.c (105973) test-mbrtowc.c (106495)
1/*-
2 * Copyright (c) 2002 Tim J. Robbins
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27/*
28 * Test program for mbrtowc(), as specified by IEEE Std. 1003.1-2001 and
29 * ISO/IEC 9899:1999.
30 *
1/*-
2 * Copyright (c) 2002 Tim J. Robbins
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27/*
28 * Test program for mbrtowc(), as specified by IEEE Std. 1003.1-2001 and
29 * ISO/IEC 9899:1999.
30 *
31 * The function is tested with both the "C" ("POSIX") LC_CTYPE seting and
32 * ja_JP.eucJP. Other encodings are not tested.
31 * The function is tested with both the "C" ("POSIX") LC_CTYPE setting and
32 * "ja_JP.eucJP". Other encodings are not tested.
33 */
34
35#include <sys/cdefs.h>
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/tools/regression/lib/libc/locale/test-mbrtowc.c 105973 2002-10-26 04:40:16Z tjr $");
36__FBSDID("$FreeBSD: head/tools/regression/lib/libc/locale/test-mbrtowc.c 106495 2002-11-06 09:37:47Z tjr $");
37
38#include <assert.h>
39#include <errno.h>
40#include <limits.h>
41#include <locale.h>
37
38#include <assert.h>
39#include <errno.h>
40#include <limits.h>
41#include <locale.h>
42#include <stdio.h>
42#include <stdlib.h>
43#include <string.h>
44#include <wchar.h>
45
46int
47main(int argc, char *argv[])
48{
49 mbstate_t s;

--- 93 unchanged lines hidden ---
43#include <stdlib.h>
44#include <string.h>
45#include <wchar.h>
46
47int
48main(int argc, char *argv[])
49{
50 mbstate_t s;

--- 93 unchanged lines hidden ---