string.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*-------------------------------------------------------------------------
  2. string.h - ANSI functions forward declarations
  3. Copyright (C) 1998, Sandeep Dutta . sandeep.dutta@usa.net
  4. Ported to PIC16 port by Vangelis Rokas, 2004 <vrokas AT otenet.gr>
  5. This library is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this library; see the file COPYING. If not, write to the
  15. Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
  16. MA 02110-1301, USA.
  17. As a special exception, if you link this library with other files,
  18. some of which are compiled with SDCC, to produce an executable,
  19. this library does not by itself cause the resulting executable to
  20. be covered by the GNU General Public License. This exception does
  21. not however invalidate any other reasons why the executable file
  22. might be covered by the GNU General Public License.
  23. -------------------------------------------------------------------------*/
  24. #ifndef __STRING_H /* { */
  25. #define __STRING_H 1
  26. #define _STRING_SPEC __data
  27. #pragma library c
  28. #ifndef NULL
  29. # define NULL (void *)0
  30. #endif
  31. #ifndef _SIZE_T_DEFINED
  32. # define _SIZE_T_DEFINED
  33. typedef unsigned int size_t;
  34. #endif
  35. char *strcat (char *, char *);
  36. char *strchr (char *, char);
  37. int strcmp (char *, char *);
  38. char *strcpy (char *, char *);
  39. int strcspn(char *, char *);
  40. int strlen (char *);
  41. char *strlwr (char *);
  42. char *strncat(char *, char *, size_t );
  43. int strncmp(char *, char *, size_t );
  44. char *strncpy(char *, char *, size_t );
  45. char *strpbrk(char *, char *);
  46. char *strrchr(char *, char);
  47. int strspn (char *, char *);
  48. char *strstr (char *, char *);
  49. char *strtok (char *, char *);
  50. char *strupr (char *);
  51. void *memccpy(void *, void *, char, size_t);
  52. void *memchr(void *, char, size_t);
  53. int memcmp (void *, void *, size_t);
  54. void *memcpy (void *, void *, size_t);
  55. void *memmove (void *, void *, size_t);
  56. void *memrchr(void *, char, size_t);
  57. void *memset (_STRING_SPEC void *, unsigned char, size_t );
  58. __code void *memchrpgm(__code void *, char, size_t);
  59. __data void *memchrram(__data void *, char, size_t);
  60. __data void *memcpypgm2ram(__data void *, __code void *, size_t);
  61. __data void *memcpyram2ram(__data void *, __data void *, size_t);
  62. #endif /* } */