fatal error on include without '"' or '<' delimiter
[unix-history] / usr / src / include / string.h
CommitLineData
a9ff7213
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
cff0a8c7 3 * All rights reserved.
91172f79 4 *
a9ff7213 5 * %sccs.include.redist.c%
cff0a8c7 6 *
a9ff7213 7 * @(#)string.h 5.3 (Berkeley) %G%
91172f79
RE
8 */
9
a9ff7213
KB
10#ifndef _STRING_H_
11#define _STRING_H_
12#include <machine/machtypes.h>
13
14#ifdef _SIZE_T_
15typedef _SIZE_T_ size_t;
16#undef _SIZE_T_
17#endif
18
19#ifndef NULL
20#define NULL 0
21#endif
22
23/* ANSI C standard routines */
24#ifdef __STDC__
25
26void *memchr(const void *, int, size_t);
27int memcmp(const void *, const void *, size_t);
28void *memcpy(void *, const void *, size_t);
29void *memmove(void *, const void *, size_t);
30void *memset(void *, int, size_t);
31char *strcat(char *, const char *);
32char *strchr(const char *, int);
33int strcmp(const char *, const char *);
34int strcoll(const char *, const char *);
35char *strcpy(char *, const char *);
36size_t strcspn(const char *, const char *);
37char *strerror(int);
38size_t strlen(const char *);
39char *strncat(char *, const char *, size_t);
40int strncmp(const char *, const char *, size_t);
41char *strncpy(char *, const char *, size_t);
42char *strpbrk(const char *, const char *);
43char *strrchr(const char *, int);
44size_t strspn(const char *, const char *);
45char *strstr(const char *, const char *);
46char *strtok(char *, const char *);
47size_t strxfrm(char *, const char *, size_t);
48
49#else /* !__STDC__ */
50
51void *memchr();
52int memcmp();
53void *memcpy();
54void *memmove();
55void *memset();
56char *strcat();
57char *strchr();
58int strcmp();
59int strcoll();
60char *strcpy();
61size_t strcspn();
62char *strerror();
63size_t strlen();
64char *strncat();
65int strncmp();
66char *strncpy();
67char *strpbrk();
68char *strrchr();
69size_t strspn();
70char *strstr();
71char *strtok();
72size_t strxfrm();
73
74#endif /* __STDC__ */
75
76/* Nonstandard routines */
77#ifndef _ANSI_SOURCE
78#ifdef __STDC__ */
79
80int bcmp(const char *, const char *, size_t);
81void bcopy(const char *, char *, size_t);
82void bzero(char *, size_t);
83int ffs(int);
84char *index(const char *, int);
85void *memccpy(void *, const void *, int, size_t);
86char *rindex(const char *, int);
87int strcasecmp(const char *, const char *);
88char *strdup(const char *);
89void strmode(mode_t, char *);
90int strncasecmp(const char *, const char *, size_t);
91char *strsep(char *, const char *);
92void swab(const char *, char *, size_t);
93
94#else /* !__STDC__ */
95
96int bcmp();
97void bcopy();
98void bzero();
99int ffs();
100char *index();
101void *memccpy();
102char *rindex();
103int strcasecmp();
104char *strdup();
105void strmode();
106int strncasecmp();
107char *strsep();
108void swab();
109
110#endif /* __STDC__ */
111#endif /* _ANSI_SOURCE */
112#endif /* _STRING_H_ */