You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

string.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 1991, 1992 Linus Torvalds
  3. * Copyright (C) 2004 Tobias Lorenz
  4. *
  5. * string handling functions
  6. * based on linux/include/linux/ctype.h
  7. * and linux/include/linux/string.h
  8. *
  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.
  12. */
  13. #ifndef ETHERBOOT_STRING_H
  14. #define ETHERBOOT_STRING_H
  15. #include <stddef.h>
  16. #include <bits/string.h>
  17. int __pure strnicmp(const char *s1, const char *s2, size_t len) __nonnull;
  18. char * strcpy(char * dest,const char *src) __nonnull;
  19. char * strncpy(char * dest,const char *src,size_t count) __nonnull;
  20. char * strcat(char * dest, const char * src) __nonnull;
  21. char * strncat(char *dest, const char *src, size_t count) __nonnull;
  22. int __pure strcmp(const char * cs,const char * ct) __nonnull;
  23. int __pure strncmp(const char * cs,const char * ct,
  24. size_t count) __nonnull;
  25. char * __pure strchr(const char * s, int c) __nonnull;
  26. char * __pure strrchr(const char * s, int c) __nonnull;
  27. size_t __pure strlen(const char * s) __nonnull;
  28. size_t __pure strnlen(const char * s, size_t count) __nonnull;
  29. size_t __pure strspn(const char *s, const char *accept) __nonnull;
  30. size_t __pure strcspn(const char *s, const char *reject) __nonnull;
  31. char * __pure strpbrk(const char * cs,const char * ct) __nonnull;
  32. char * strtok(char * s,const char * ct) __nonnull;
  33. char * strsep(char **s, const char *ct) __nonnull;
  34. void * memset(void * s,int c,size_t count) __nonnull;
  35. void * memmove(void * dest,const void *src,size_t count) __nonnull;
  36. int __pure memcmp(const void * cs,const void * ct,
  37. size_t count) __nonnull;
  38. void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
  39. char * __pure strstr(const char * s1,const char * s2) __nonnull;
  40. void * __pure memchr(const void *s, int c, size_t n) __nonnull;
  41. char * __malloc strdup(const char *s) __nonnull;
  42. char * __malloc strndup(const char *s, size_t n) __nonnull;
  43. extern const char * __pure strerror ( int errno );
  44. #endif /* ETHERBOOT_STRING */