annotate lib/strchrnul.h @ 7419:0c560af115cb

.
author Karl Berry <karl@freefriends.org>
date Sat, 07 Oct 2006 07:42:41 +0000
parents a48fb0e98c8c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4387
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Searching in a string.
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2003 Free Software Foundation, Inc.
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 2, or (at your option)
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 any later version.
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program; if not, write to the Free Software Foundation,
5848
a48fb0e98c8c *** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents: 4387
diff changeset
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
4387
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #if HAVE_STRCHRNUL
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 /* Get strchrnul() declaration. */
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <string.h>
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #else
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 /* Find the first occurrence of C in S or the final NUL byte. */
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 extern char *strchrnul (const char *s, int c_in);
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
3d8c93096962 New module strchrnul.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #endif