blob: 403ae982beb248e53356c8f16b5e4f5d3c5358cb [file] [log] [blame]
wdenk60b1bd02001-10-17 20:21:50 +00001#ifndef _LINUX_STRING_H_
2#define _LINUX_STRING_H_
3
4#include <linux/types.h> /* for size_t */
5#include <linux/stddef.h> /* for NULL */
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11extern char * ___strtok;
12extern char * strpbrk(const char *,const char *);
13extern char * strtok(char *,const char *);
14extern char * strsep(char **,const char *);
15extern __kernel_size_t strspn(const char *,const char *);
16
17
18/*
19 * Include machine specific inline routines
20 */
21#include <asm/string.h>
22
23#ifndef __HAVE_ARCH_STRCPY
24extern char * strcpy(char *,const char *);
25#endif
26#ifndef __HAVE_ARCH_STRNCPY
27extern char * strncpy(char *,const char *, __kernel_size_t);
28#endif
29#ifndef __HAVE_ARCH_STRCAT
30extern char * strcat(char *, const char *);
31#endif
32#ifndef __HAVE_ARCH_STRNCAT
33extern char * strncat(char *, const char *, __kernel_size_t);
34#endif
35#ifndef __HAVE_ARCH_STRCMP
36extern int strcmp(const char *,const char *);
37#endif
38#ifndef __HAVE_ARCH_STRNCMP
39extern int strncmp(const char *,const char *,__kernel_size_t);
40#endif
41#ifndef __HAVE_ARCH_STRNICMP
42extern int strnicmp(const char *, const char *, __kernel_size_t);
43#endif
44#ifndef __HAVE_ARCH_STRCHR
45extern char * strchr(const char *,int);
46#endif
47#ifndef __HAVE_ARCH_STRRCHR
48extern char * strrchr(const char *,int);
49#endif
50#ifndef __HAVE_ARCH_STRSTR
51extern char * strstr(const char *,const char *);
52#endif
53#ifndef __HAVE_ARCH_STRLEN
54extern __kernel_size_t strlen(const char *);
55#endif
56#ifndef __HAVE_ARCH_STRNLEN
57extern __kernel_size_t strnlen(const char *,__kernel_size_t);
58#endif
59#ifndef __HAVE_ARCH_STRDUP
60extern char * strdup(const char *);
61#endif
wdenkc3f9d492004-03-14 00:59:59 +000062#ifdef __HAVE_ARCH_STRSWAB
63extern char * strswab(const char *);
64#endif
wdenk60b1bd02001-10-17 20:21:50 +000065
66#ifndef __HAVE_ARCH_MEMSET
67extern void * memset(void *,int,__kernel_size_t);
68#endif
69#ifndef __HAVE_ARCH_MEMCPY
70extern void * memcpy(void *,const void *,__kernel_size_t);
71#endif
72#ifndef __HAVE_ARCH_MEMMOVE
73extern void * memmove(void *,const void *,__kernel_size_t);
74#endif
75#ifndef __HAVE_ARCH_MEMSCAN
76extern void * memscan(void *,int,__kernel_size_t);
77#endif
78#ifndef __HAVE_ARCH_MEMCMP
79extern int memcmp(const void *,const void *,__kernel_size_t);
80#endif
81#ifndef __HAVE_ARCH_MEMCHR
82extern void * memchr(const void *,int,__kernel_size_t);
83#endif
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* _LINUX_STRING_H_ */