1 /* Copyright (C) 1991,92,96,97,99,2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
22 /* We don't need and should not read this file if <string.h> was already
26 # include <features.h>
27 # define __need_size_t
32 /* Compare N bytes of S1 and S2 (same as memcmp). */
33 extern int bcmp (__const
void *__s1
, __const
void *__s2
, size_t __n
)
34 __THROW __attribute_pure__
;
36 /* Copy N bytes of SRC to DEST (like memmove, but args reversed). */
37 extern void bcopy (__const
void *__src
, void *__dest
, size_t __n
) __THROW
;
39 /* Set N bytes of S to 0. */
40 extern void bzero (void *__s
, size_t __n
) __THROW
;
42 /* Return the position of the first bit set in I, or 0 if none are set.
43 The least-significant bit is position 1, the most-significant 32. */
44 extern int ffs (int __i
) __THROW
__attribute__ ((const));
46 /* Find the first occurrence of C in S (same as strchr). */
47 extern char *index (__const
char *__s
, int __c
) __THROW __attribute_pure__
;
49 /* Find the last occurrence of C in S (same as strrchr). */
50 extern char *rindex (__const
char *__s
, int __c
) __THROW __attribute_pure__
;
52 /* Compare S1 and S2, ignoring case. */
53 extern int strcasecmp (__const
char *__s1
, __const
char *__s2
)
54 __THROW __attribute_pure__
;
56 /* Compare no more than N chars of S1 and S2, ignoring case. */
57 extern int strncasecmp (__const
char *__s1
, __const
char *__s2
, size_t __n
)
58 __THROW __attribute_pure__
;
64 #endif /* strings.h */