string.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 1991, 1992  Linus Torvalds
00003  *  Copyright (C) 2004 Tobias Lorenz
00004  *
00005  *  string handling functions
00006  *  based on linux/include/linux/ctype.h
00007  *       and linux/include/linux/string.h
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License version 2 as
00011  * published by the Free Software Foundation.
00012  */
00013 
00014 FILE_LICENCE ( GPL2_ONLY );
00015 
00016 #ifndef ETHERBOOT_STRING_H
00017 #define ETHERBOOT_STRING_H
00018 
00019 #include <stddef.h>
00020 #include <bits/string.h>
00021 
00022 int __pure strnicmp(const char *s1, const char *s2, size_t len) __nonnull;
00023 char * strcpy(char * dest,const char *src) __nonnull;
00024 char * strncpy(char * dest,const char *src,size_t count) __nonnull;
00025 char * strcat(char * dest, const char * src) __nonnull;
00026 char * strncat(char *dest, const char *src, size_t count) __nonnull;
00027 int __pure strcmp(const char * cs,const char * ct) __nonnull;
00028 int __pure strncmp(const char * cs,const char * ct,
00029                                      size_t count) __nonnull;
00030 char * __pure strchr(const char * s, int c) __nonnull;
00031 char * __pure strrchr(const char * s, int c) __nonnull;
00032 size_t __pure strlen(const char * s) __nonnull;
00033 size_t __pure strnlen(const char * s, size_t count) __nonnull;
00034 size_t __pure strspn(const char *s, const char *accept) __nonnull;
00035 size_t __pure strcspn(const char *s, const char *reject) __nonnull;
00036 char * __pure strpbrk(const char * cs,const char * ct) __nonnull;
00037 char * strtok(char * s,const char * ct) __nonnull;
00038 char * strsep(char **s, const char *ct) __nonnull;
00039 void * memset(void * s,int c,size_t count) __nonnull;
00040 void * memmove(void * dest,const void *src,size_t count) __nonnull;
00041 int __pure memcmp(const void * cs,const void * ct,
00042                                     size_t count) __nonnull;
00043 void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
00044 char * __pure strstr(const char * s1,const char * s2) __nonnull;
00045 void * __pure memchr(const void *s, int c, size_t n) __nonnull;
00046 char * __malloc strdup(const char *s) __nonnull;
00047 char * __malloc strndup(const char *s, size_t n) __nonnull;
00048 
00049 extern const char * __pure strerror ( int errno );
00050 
00051 #endif /* ETHERBOOT_STRING */

Generated on Tue Apr 6 20:01:09 2010 for gPXE by  doxygen 1.5.7.1