blob: 9a8cbc24cdceeef5612dcdeca82fe788b3d33f56 [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
Wolfgang Denk983bebb2006-05-03 01:00:39 +020041#if 0 /* not used - was: #ifndef __HAVE_ARCH_STRNICMP */
wdenk60b1bd02001-10-17 20:21:50 +000042extern 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
Christian Hitz5454ddb2011-10-12 09:32:05 +020050extern char * skip_spaces(const char *);
51
52extern char *strim(char *);
53
wdenk60b1bd02001-10-17 20:21:50 +000054#ifndef __HAVE_ARCH_STRSTR
55extern char * strstr(const char *,const char *);
56#endif
57#ifndef __HAVE_ARCH_STRLEN
58extern __kernel_size_t strlen(const char *);
59#endif
60#ifndef __HAVE_ARCH_STRNLEN
61extern __kernel_size_t strnlen(const char *,__kernel_size_t);
62#endif
63#ifndef __HAVE_ARCH_STRDUP
64extern char * strdup(const char *);
65#endif
wdenk27aa8182004-03-23 22:37:33 +000066#ifndef __HAVE_ARCH_STRSWAB
wdenkc3f9d492004-03-14 00:59:59 +000067extern char * strswab(const char *);
68#endif
wdenk60b1bd02001-10-17 20:21:50 +000069
70#ifndef __HAVE_ARCH_MEMSET
71extern void * memset(void *,int,__kernel_size_t);
72#endif
73#ifndef __HAVE_ARCH_MEMCPY
74extern void * memcpy(void *,const void *,__kernel_size_t);
75#endif
76#ifndef __HAVE_ARCH_MEMMOVE
77extern void * memmove(void *,const void *,__kernel_size_t);
78#endif
79#ifndef __HAVE_ARCH_MEMSCAN
80extern void * memscan(void *,int,__kernel_size_t);
81#endif
82#ifndef __HAVE_ARCH_MEMCMP
83extern int memcmp(const void *,const void *,__kernel_size_t);
84#endif
85#ifndef __HAVE_ARCH_MEMCHR
86extern void * memchr(const void *,int,__kernel_size_t);
87#endif
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* _LINUX_STRING_H_ */