annotate lib/strstr.h @ 3964:b48eab35ae58

New header files.
author Bruno Haible <bruno@clisp.org>
date Mon, 04 Nov 2002 15:24:56 +0000
parents
children 374be83da43b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3964
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Searching in a string.
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2001 Free Software Foundation, Inc.
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 2, or (at your option)
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 any later version.
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program; if not, write to the Free Software Foundation,
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #ifndef PARAMS
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 # if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 # define PARAMS(Args) Args
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 # else
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 # define PARAMS(Args) ()
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 # endif
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #endif
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 #if HAVE_STRSTR
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 /* Get strstr() declaration. */
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 #include <string.h>
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 #else
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 /* Find the first occurrence of NEEDLE in HAYSTACK. */
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 extern char *strstr PARAMS ((const char *haystack, const char *needle));
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35
b48eab35ae58 New header files.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 #endif