2005-03-08 18:53:11 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 1991, 1992 Linus Torvalds
|
|
|
|
* Copyright (C) 2004 Tobias Lorenz
|
|
|
|
*
|
|
|
|
* string handling functions
|
|
|
|
* based on linux/include/linux/ctype.h
|
|
|
|
* and linux/include/linux/string.h
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ETHERBOOT_STRING_H
|
|
|
|
#define ETHERBOOT_STRING_H
|
|
|
|
|
2007-01-26 03:25:19 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <bits/string.h>
|
2005-03-08 18:53:11 +00:00
|
|
|
|
|
|
|
int strnicmp(const char *s1, const char *s2, size_t len);
|
|
|
|
char * strcpy(char * dest,const char *src);
|
|
|
|
char * strncpy(char * dest,const char *src,size_t count);
|
|
|
|
char * strcat(char * dest, const char * src);
|
|
|
|
char * strncat(char *dest, const char *src, size_t count);
|
2006-11-27 23:50:24 +00:00
|
|
|
int __attribute__ (( pure )) strcmp(const char * cs,const char * ct);
|
|
|
|
int __attribute__ (( pure )) strncmp(const char * cs,const char * ct,
|
|
|
|
size_t count);
|
2005-03-08 18:53:11 +00:00
|
|
|
char * strchr(const char * s, int c);
|
|
|
|
char * strrchr(const char * s, int c);
|
|
|
|
size_t strlen(const char * s);
|
|
|
|
size_t strnlen(const char * s, size_t count);
|
|
|
|
size_t strspn(const char *s, const char *accept);
|
2007-07-08 21:03:12 +00:00
|
|
|
size_t strcspn(const char *s, const char *reject);
|
2005-03-08 18:53:11 +00:00
|
|
|
char * strpbrk(const char * cs,const char * ct);
|
|
|
|
char * strtok(char * s,const char * ct);
|
|
|
|
char * strsep(char **s, const char *ct);
|
|
|
|
void * memset(void * s,int c,size_t count);
|
|
|
|
void * memmove(void * dest,const void *src,size_t count);
|
2006-11-27 23:50:24 +00:00
|
|
|
int __attribute__ (( pure )) memcmp(const void * cs,const void * ct,
|
|
|
|
size_t count);
|
2005-03-08 18:53:11 +00:00
|
|
|
void * memscan(void * addr, int c, size_t size);
|
|
|
|
char * strstr(const char * s1,const char * s2);
|
|
|
|
void * memchr(const void *s, int c, size_t n);
|
2006-12-08 00:34:47 +00:00
|
|
|
char * strdup(const char *s);
|
2007-07-08 21:03:12 +00:00
|
|
|
char * strndup(const char *s, size_t n);
|
2005-03-08 18:53:11 +00:00
|
|
|
|
2006-12-20 03:35:49 +00:00
|
|
|
extern const char * strerror ( int errno );
|
|
|
|
|
2005-03-08 18:53:11 +00:00
|
|
|
#endif /* ETHERBOOT_STRING */
|