annotate tests/test-strings.c @ 14878:293a9a1292a9

strerror-override: avoid bloating errno module * modules/errno (Files, configure.ac): Move replacement strings... * modules/strerror-override: ...to new module. * modules/strerror (Depends-on): Add strerror-override. * modules/strerror_r-posix (Depends-on): Likewise. * MODULES.html.sh: Document new module. Reported by Bruno Haible. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Mon, 06 Jun 2011 15:11:04 -0600
parents 97fc9a21a8fb
children 8250f2777afc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9497
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <strings.h> substitute.
14079
97fc9a21a8fb maint: update almost all copyright ranges to include 2011
Jim Meyering <meyering@redhat.com>
parents: 12559
diff changeset
2 Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
9497
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2007. */
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <config.h>
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <strings.h>
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 int
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 main ()
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 {
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 return 0;
e5ba9ffae779 Tests for module 'strings'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 }