/*
 * string.h for libRILc.

    This file is part of libRILc, a standard C library for GCC on Amiga OS.
    Copyright © 1997, 998  Rask Ingemann Lambertsen

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    As a special exception, if you link this library with files compiled
    with a GNU compiler to produce an executable, this does not cause the
    resulting executable to be covered by the GNU General Public License.
    This exception does not however invalidate any other reasons why the
    executable file might be covered by the GNU General Public License.
*/

#ifndef _STRING_H
#define _STRING_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stddef.h>

/* Fix exec/types.h conflict with libg++ */
#undef GLOBAL

#undef bcopy /* EGCS fails to build otherwise (cccp.c line 117). */
#undef bzero /* EGCS fails to build otherwise (cccp.c line 117). */

int memcmp (const void *str1, const void *str2, size_t length);
void *memcpy (void *dest, const void *source, size_t length);
void bcopy (const void *source, void *dest, size_t length);
void *memmove (void *dest, const void *source, size_t length);
char *strcat (char *dest, const char *source);
int strcmp (const char *str1, const char *str2);
char *strcpy (char *dest, const char *source);
size_t strlen (const char *string);
char *strncpy (char *dest, const char *source, size_t n);
char *strrchr (const char *str, int chr);
int stricmp (const char *str1, const char *str2);
int strnicmp (const char *str1, const char *str2, size_t n);
char *strncat (char *dest, const char *source, size_t n);
int strncmp (const char *str1, const char *str2, size_t n);
void *memset (void *buf, int ch, size_t num);
void bzero (void *buf, size_t num);
void swab (const void *bsource, void *bdest, size_t len);
char *strdup (const char *str);
size_t strcspn (const char *str, const char *charset);
char *memchr (const char *str0, int chr, size_t n);
char *strchr (const char *str, int chr);

#define strcasecmp stricmp
#define strncasecmp strnicmp

#ifdef __cplusplus
}
#endif

#endif /* _STRING_H */
