2 * Copyright (C) 1991, 1992 Linus Torvalds
3 * Copyright (C) 2004 Tobias Lorenz
5 * string handling functions
6 * based on linux/include/linux/ctype.h
7 * and linux/include/linux/string.h
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #ifndef ETHERBOOT_STRING_H
15 #define ETHERBOOT_STRING_H
18 #include <bits/string.h>
20 int __pure
strnicmp(const char *s1
, const char *s2
, size_t len
) __nonnull
;
21 char * strcpy(char * dest
,const char *src
) __nonnull
;
22 char * strncpy(char * dest
,const char *src
,size_t count
) __nonnull
;
23 char * strcat(char * dest
, const char * src
) __nonnull
;
24 char * strncat(char *dest
, const char *src
, size_t count
) __nonnull
;
25 int __pure
strcmp(const char * cs
,const char * ct
) __nonnull
;
26 int __pure
strncmp(const char * cs
,const char * ct
,
27 size_t count
) __nonnull
;
28 char * __pure
strchr(const char * s
, int c
) __nonnull
;
29 char * __pure
strrchr(const char * s
, int c
) __nonnull
;
30 size_t __pure
strlen(const char * s
) __nonnull
;
31 size_t __pure
strnlen(const char * s
, size_t count
) __nonnull
;
32 size_t __pure
strspn(const char *s
, const char *accept
) __nonnull
;
33 size_t __pure
strcspn(const char *s
, const char *reject
) __nonnull
;
34 char * __pure
strpbrk(const char * cs
,const char * ct
) __nonnull
;
35 char * strtok(char * s
,const char * ct
) __nonnull
;
36 char * strsep(char **s
, const char *ct
) __nonnull
;
37 void * memset(void * s
,int c
,size_t count
) __nonnull
;
38 void * memmove(void * dest
,const void *src
,size_t count
) __nonnull
;
39 int __pure
memcmp(const void * cs
,const void * ct
,
40 size_t count
) __nonnull
;
41 void * __pure
memscan(const void * addr
, int c
, size_t size
) __nonnull
;
42 char * __pure
strstr(const char * s1
,const char * s2
) __nonnull
;
43 void * __pure
memchr(const void *s
, int c
, size_t n
) __nonnull
;
44 char * __malloc
strdup(const char *s
) __nonnull
;
45 char * __malloc
strndup(const char *s
, size_t n
) __nonnull
;
47 extern const char * __pure
strerror ( int errno
);
49 #endif /* ETHERBOOT_STRING */