Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

string.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. FILE_LICENCE ( GPL2_ONLY );
  14. #ifndef ETHERBOOT_STRING_H
  15. #define ETHERBOOT_STRING_H
  16. #include <stddef.h>
  17. #include <bits/string.h>
  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. int __pure strcmp(const char * cs,const char * ct) __nonnull;
  22. int __pure strncmp(const char * cs,const char * ct,
  23. size_t count) __nonnull;
  24. char * __pure strchr(const char * s, int c) __nonnull;
  25. char * __pure strrchr(const char * s, int c) __nonnull;
  26. size_t __pure strlen(const char * s) __nonnull;
  27. size_t __pure strnlen(const char * s, size_t count) __nonnull;
  28. char * __pure strpbrk(const char * cs,const char * ct) __nonnull;
  29. char * strsep(char **s, const char *ct) __nonnull;
  30. void * memset(void * s,int c,size_t count) __nonnull;
  31. void * memcpy ( void *dest, const void *src, size_t len ) __nonnull;
  32. void * memmove(void * dest,const void *src,size_t count) __nonnull;
  33. int __pure memcmp(const void * cs,const void * ct,
  34. size_t count) __nonnull;
  35. char * __pure strstr(const char * s1,const char * s2) __nonnull;
  36. void * __pure memchr(const void *s, int c, size_t n) __nonnull;
  37. char * __malloc strdup(const char *s) __nonnull;
  38. char * __malloc strndup(const char *s, size_t n) __nonnull;
  39. extern const char * __pure strerror ( int errno );
  40. #endif /* ETHERBOOT_STRING */