Updated PCI IDs to latest snapshot.
[tangerine.git] / compiler / clib / include / string.h
blob976e78848da6d0fc76b8b8eaa5e8b281ecdc1752
1 #ifndef _STRING_H_
2 #define _STRING_H_
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: ANSI-C header file string.h
9 Lang: english
11 #include <sys/_types.h>
12 #include <sys/cdefs.h>
14 #include <stddef.h>
15 #include <sdgstd.h>
17 __BEGIN_DECLS
19 size_t strlen (const char * str);
20 int strcasecmp (const char * s1, const char * s2);
21 int strcmp (const char * s1, const char * s2);
22 int strncasecmp (const char *str1, const char * str2, size_t n);
23 char * strcasestr (const char * buf, const char * str);
24 int strncmp (const char * s1, const char * s2, size_t n);
25 char * strdup (const char * str);
26 char * strcpy (char * restrict dest, const char * restrict src);
27 char * strcat (char * restrict dest, const char * restrict src);
28 size_t strcspn (const char *s1, const char *s2);
29 char * strerror (int n);
30 char * strncat (char * restrict dest, const char * restrict src, size_t n);
31 char * strncpy (char * restrict dest, const char * restrict src, size_t n);
32 char * strpbrk (const char * s1, const char * s2);
33 char * strchr (const char * s, int c);
34 char * strrchr (const char * s, int c);
35 size_t strspn (const char * s1, const char * s2);
36 char * strstr (const char * buf, const char * str);
37 char * strtok (char * str, const char * sep);
38 char * strtok_r (char * str, const char * sep, char ** last);
39 char * stpcpy (char * dest, const char * src);
41 size_t strlcpy(char *dst, const char *src, size_t size);
42 size_t strlcat(char *dst, const char *src, size_t size);
44 void swab(const void *src, void *dst, size_t len);
46 int strcoll (const char *s1, const char *s2);
48 size_t strxfrm (char * restrict s1, const char * restrict s2, size_t n);
50 void * memchr (const void * dest, int c, size_t n);
51 int memcmp (const void * s1, const void * s2, size_t n);
52 void * memcpy (void * restrict dest, const void * restrict src, size_t n);
53 void * memmove (void * dest, const void * src, size_t n);
54 void * memset (void * dest, int c, size_t n);
56 /* Supplemental (not ANSI C) */
57 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
58 size_t stccpy(char *str1_ptr, const char *str2_ptr, size_t max);
59 char *stpsym(char *str_ptr, char *dest_ptr, int dest_size);
61 char * index (const char * s, int c);
62 char * rindex (const char * s, int c);
64 char * stpblk( const char * str ); /* Supplemental (not ANSI C) */
66 #define stpbrk(s,cs) strpbrk(s,cs) /* Supplemental (not ANSI C) */
67 #define stpchr(s,c) strchr(s,c) /* Supplemental (not ANSI C) */
69 char * strrev(char * s); /* SAS C */
70 int stch_l(const char * in, long * lvalue); /* SAS C */
71 int stcd_l(const char * in, long * lvalue); /* SAS C */
72 int stco_l(const char * in, long * lvalue); /* SAS C */
74 int stcl_d(char * out, long lvalue); /* SAS C */
75 int stcl_h(char * out, long lvalue); /* SAS C */
76 int stcl_o(char * out, long lvalue); /* SAS C */
78 int stcu_d(char * out, unsigned uivalue); /* SAS C */
80 void * memccpy (void * restrict dest, const void * restrict src,
81 int c, size_t n);
83 int bcmp (const void * s1, const void * s2, size_t n);
84 void bcopy (const void * src, void * dst, size_t n);
85 void bzero (void * src, size_t n);
87 char *strsep(char **, const char *); /* BSD */
89 /* Macros */
90 #define stricmp strcasecmp
91 #define strnicmp strncasecmp
93 #endif /* !_ANSI_SOURCE && !_POSIX_SOURCE */
95 __END_DECLS
97 #endif /* _STRING_H_ */