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 strnicmp(const char *s1, const char *s2, size_t len);
21 char * strcpy(char * dest,const char *src);
22 char * strncpy(char * dest,const char *src,size_t count);
23 char * strcat(char * dest, const char * src);
24 char * strncat(char *dest, const char *src, size_t count);
25 int __attribute__ (( pure )) strcmp(const char * cs,const char * ct);
26 int __attribute__ (( pure )) strncmp(const char * cs,const char * ct,
28 char * strchr(const char * s, int c);
29 char * strrchr(const char * s, int c);
30 size_t strlen(const char * s);
31 size_t strnlen(const char * s, size_t count);
32 size_t strspn(const char *s, const char *accept);
33 char * strpbrk(const char * cs,const char * ct);
34 char * strtok(char * s,const char * ct);
35 char * strsep(char **s, const char *ct);
36 void * memset(void * s,int c,size_t count);
37 void * memmove(void * dest,const void *src,size_t count);
38 int __attribute__ (( pure )) memcmp(const void * cs,const void * ct,
40 void * memscan(void * addr, int c, size_t size);
41 char * strstr(const char * s1,const char * s2);
42 void * memchr(const void *s, int c, size_t n);
43 char * strdup(const char *s);
45 extern const char * strerror ( int errno );
47 #endif /* ETHERBOOT_STRING */