]> git.saurik.com Git - bison.git/blame - lib/strchr.c
and Akim Demaille <akim@epita.fr>
[bison.git] / lib / strchr.c
CommitLineData
ec2da99f
AD
1/* Copyright (C) 2001 Free Software Foundation, Inc.
2
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public License
5 as published by the Free Software Foundation; either version 2 of
6 the License, or (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with this program; see the file COPYING.LIB. If not,
15 write to the Free Software Foundation, Inc., 59 Temple Place -
16 Suite 330, Boston, MA 02111-1307, USA. */
17
18#if HAVE_CONFIG_H
19# include <config.h>
20#endif
21
22#if HAVE_STRING_H
23# include <string.h>
24#else
25# include <strings.h>
26#endif
27
28char *
29strchr (const char *s, int c)
30{
31 return index (s, c);
32}