1 /* Copyright (C) 1995 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
16 not, write to the, Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
30 /* This data type should be large enough to contain MB_CUR_MAX bytes. */
31 typedef unsigned int mbchar_t
;
34 /* Copy SRC to DEST. */
35 extern char *mbscpy
__P ((char *__dest
, __const
char *__src
));
36 /* Copy no more than N multi-byte characters of SRC to DEST. */
37 extern char *mbsncpy
__P ((char *__dest
, __const
char *__src
, size_t __n
));
39 /* Append SRC onto DEST. */
40 extern char *mbscat
__P ((char *__dest
, __const
char *__src
));
41 /* Append no more than N characters from SRC onto DEST. */
42 extern char *mbsncat
__P ((char *__dest
, __const
char *__src
, size_t __n
));
44 /* Compare S1 and S2. */
45 extern int mbscmp
__P ((__const
char *__s1
, __const
char *__s2
));
46 /* Compare N characters of S1 and S2. */
47 extern int mbsncmp
__P ((__const
char *__s1
, __const
char *__s2
, size_t __n
));
49 /* Duplicate MBS, returning an identical malloc'd string. */
50 extern char *mbsdup
__P ((__const
char *__s
));
52 /* Find the first occurence of MBC in MBS. */
53 extern char *mbschr
__P ((__const
char *__mbs
, mbchar_t mbc
));
54 /* Find the last occurence of MBC in MBS. */
55 extern char *mbsrchr
__P ((__const
char *__mbs
, mbchar_t mbc
));
57 /* Return the length of MBS. */
58 extern size_t mbslen
__P ((__const
char *__mbs
));
61 /* Advance pointer to multibyte string by one character. */
62 extern char *mbsadvance
__P ((__const
char *__mbs
));
64 /* Return first character in MBS. */
65 extern mbchar_t mbstomb
__P ((__const
char *__mbs
));
69 #endif /* mbstring.h */