Pristine Ack-5.5
[Ack-5.5.git] / lib / minix / include / string.h
1 /* The <string.h> header contains prototypes for the string handling 
2  * functions.
3  */
4
5 #ifndef _STRING_H
6 #define _STRING_H
7
8 #ifndef NULL
9 #define NULL    ((void *)0)
10 #endif
11
12 #ifndef _SIZE_T
13 #define _SIZE_T
14 typedef unsigned int size_t;    /* type returned by sizeof */
15 #endif /*_SIZE_T */
16
17 /* Function Prototypes. */
18 #ifndef _ANSI_H
19 #include <ansi.h>
20 #endif
21
22 _PROTOTYPE( void *memcpy, (void *_s1, const void *_s2, size_t _n)       );
23 _PROTOTYPE( void *memmove, (void *_s1, const void *_s2, size_t _n)      );
24 _PROTOTYPE( char *strcpy, (char *_s1, const char *_s2)                  );
25 _PROTOTYPE( char *strncpy, (char *_s1, const char *_s2, size_t _n)      );
26 _PROTOTYPE( char *strcat, (char *_s1, const char *_s2)                  );
27 _PROTOTYPE( char *strncat, (char *_s1, const char *_s2, size_t _n)      );
28 _PROTOTYPE( int memcmp, (const void *_s1, const void *_s2, size_t _n)   );
29 _PROTOTYPE( int strcmp, (const char *_s1, const char *_s2)              );
30 _PROTOTYPE( int strcoll, (const char *_s1, const char *_s2)             );
31 _PROTOTYPE( int strncmp, (const char *_s1, const char *_s2, size_t _n)  );
32 _PROTOTYPE( size_t strxfrm, (char *_s1, const char *_s2, size_t _n)     );
33 _PROTOTYPE( void *memchr, (const void *_s, int _c, size_t _n)           );
34 _PROTOTYPE( char *strchr, (const char *_s, int _c)                      );
35 _PROTOTYPE( size_t strcspn, (const char *_s1, const char *_s2)          );
36 _PROTOTYPE( char *strpbrk, (const char *_s1, const char *_s2)           );
37 _PROTOTYPE( char *strrchr, (const char *_s, int _c)                     );
38 _PROTOTYPE( size_t strspn, (const char *_s1, const char *_s2)           );
39 _PROTOTYPE( char *strstr, (const char *_s1, const char *_s2)            );
40 _PROTOTYPE( char *strtok, (char *_s1, const char *_s2)                  );
41 _PROTOTYPE( void *memset, (void *_s, int _c, size_t _n)                 );
42 _PROTOTYPE( char *strerror, ( int _errnum)                              );
43 _PROTOTYPE( size_t strlen, (const char *_s)                             );
44
45 #ifdef _MINIX
46 /* For backward compatibility. */
47 _PROTOTYPE( char *index, (const char *_s, int _charwanted)              );
48 _PROTOTYPE( char *rindex, (const char *_s, int _charwanted)             );
49 _PROTOTYPE( void bcopy, (const char *_src, char *_dst, int _length)     );
50 _PROTOTYPE( int bcmp, (const char *_s1, const char *_s2, int _length)   );
51 _PROTOTYPE( void bzero, (char *_dst, int _length)                       );
52 _PROTOTYPE( void *memccpy, (char *_dst, const char *_src, int _ucharstop,
53                                                     size_t _size)       );
54
55 #endif
56
57 #endif /* _STRING_H */