1
/* @(#)strdefs.h 1.8 03/03/09 Copyright 1996 J. Schilling */
3
* Definitions for strings
5
* Copyright (c) 1996 J. Schilling
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2, or (at your option)
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License along with
19
* this program; see the file COPYING. If not, write to the Free Software
20
* Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34
* It may be that IBM's AIX has problems when doing
36
* #include <strings.h>
37
* So I moved the #include <strings.h> to the top. As the file strings.h
38
* defines strcasecmp() we may need it...
40
* Note that the only real problem appears if we use rubbish FSF based code that
44
#ifndef _INCL_STRINGS_H
46
#define _INCL_STRINGS_H
48
#endif /* HAVE_STRINGS_H */
52
#ifndef _INCL_STRING_H
54
#define _INCL_STRING_H
56
#else /* HAVE_STRING_H */
66
extern void *memcpy __PR((void *, const void *, int));
67
extern void *memmove __PR((void *, const void *, int));
68
extern char *strcpy __PR((char *, const char *));
69
extern char *strncpy __PR((char *, const char *, int));
71
extern char *strcat __PR((char *, const char *));
72
extern char *strncat __PR((char *, const char *, int));
74
extern int memcmp __PR((const void *, const void *, int));
75
extern int strcmp __PR((const char *, const char *));
76
extern int strcoll __PR((const char *, const char *));
77
extern int strncmp __PR((const char *, const char *, int));
78
extern int strxfrm __PR((char *, const char *, int));
80
extern void *memchr __PR((const void *, int, int));
81
extern char *strchr __PR((const char *, int));
83
extern int strcspn __PR((const char *, const char *));
84
/*#pragma int_to_unsigned strcspn*/
86
extern char *strpbrk __PR((const char *, const char *));
87
extern char *strrchr __PR((const char *, int));
89
extern int strspn __PR((const char *, const char *));
90
/*#pragma int_to_unsigned strspn*/
92
extern char *strstr __PR((const char *, const char *));
93
extern char *strtok __PR((char *, const char *));
94
extern void *memset __PR((void *, int, int));
95
extern char *strerror __PR((int));
97
extern int strlen __PR((const char *));
98
/*#pragma int_to_unsigned strlen*/
100
extern void *memccpy __PR((void *, const void *, int, int));
102
extern int strcasecmp __PR((const char *, const char *));
103
extern int strncasecmp __PR((const char *, const char *, int));
105
/*#define index strchr*/
106
/*#define rindex strrchr*/
112
#endif /* HAVE_STRING_H */
114
#endif /* _STRDEFS_H */