annotate tests/unistdio/test-u8-asnprintf1.c @ 17907:0a1c2535cad9

euidaccess: Fix Android build * modules/euidaccess (Depends-on): Add fcntl-h to ensure that AT_EACCESS gets declared.
author Kevin Cernekee <cernekee@google.com>
date Wed, 11 Feb 2015 15:22:54 -0800
parents ab58d4870664
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9030
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of u8_asnprintf() function.
17848
ab58d4870664 version-etc: new year
Paul Eggert <eggert@cs.ucla.edu>
parents: 17587
diff changeset
2 Copyright (C) 2007-2015 Free Software Foundation, Inc.
9030
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 9030
diff changeset
4 This program is free software: you can redistribute it and/or modify
9030
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 9030
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 9030
diff changeset
7 (at your option) any later version.
9030
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
9309
bbbbbf4cd1c5 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents: 9030
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
9030
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2007. */
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <config.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include "unistdio.h"
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include <errno.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include <stdarg.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #include <stddef.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #include <stdint.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #include <stdlib.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #include <string.h>
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #include "unistr.h"
12496
a48d3d749ca5 Refactor common macros used in tests.
Bruno Haible <bruno@clisp.org>
parents: 12421
diff changeset
31 #include "macros.h"
9030
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 #include "test-u8-asnprintf1.h"
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 static void
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 test_asnprintf ()
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 {
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 test_function (u8_asnprintf);
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 }
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 int
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 main (int argc, char *argv[])
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 {
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 test_asnprintf ();
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 return 0;
870029929d86 Formatted output functions for Unicode strings.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 }