1 /*-------------------------------------------------------------------------
2 string.h - ANSI functions forward declarations
4 Modified for pic16 port by Vangelis Rokas, 2004, vrokas@otenet.gr
6 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 In other words, you are welcome to use, share and improve this program.
23 You are forbidden to forbid anyone else to use, share and improve
24 what you give them. Help stamp out software-hoarding!
25 -------------------------------------------------------------------------*/
30 #ifndef __STRING_H /* { */
33 #define _STRING_SPEC data
36 # define NULL (void *)0
39 #ifndef _SIZE_T_DEFINED
40 # define _SIZE_T_DEFINED
41 typedef unsigned int size_t;
44 extern char *strcat (char *, char *);
45 extern char *strchr (char *, char);
46 extern int strcmp (char *, char *);
47 extern char *strcpy (char *, char *);
48 extern int strcspn(char *, char *);
49 extern int strlen (char *);
50 extern char *strlwr (char *);
51 extern char *strncat(char *, char *, size_t );
52 extern int strncmp(char *, char *, size_t );
53 extern char *strncpy(char *, char *, size_t );
54 extern char *strpbrk(char *, char *);
55 extern char *strrchr(char *, char);
56 extern int strspn (char *, char *);
57 extern char *strstr (char *, char *);
58 extern char *strtok (char *, char *);
59 extern char *strupr (char *);
61 extern void *memccpy(void *, void *, char, size_t);
62 extern void *memchr(void *, char, size_t);
63 extern int memcmp (void *, void *, size_t);
64 extern void *memcpy (void *, void *, size_t);
65 extern void *memmove (void *, void *, size_t);
66 extern void *memrchr(void *, char, size_t);
67 extern void *memset (_STRING_SPEC void *, unsigned char, size_t );