Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

string.h 2.1KB

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