* initial revision, PIC16 C Library headers
[fw/sdcc] / device / include / pic16 / string.h
1 /*-------------------------------------------------------------------------
2    string.h - ANSI functions forward declarations    
3   
4    Modified for pic16 port by Vangelis Rokas, 2004, vrokas@otenet.gr
5    
6        Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
7
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
11    later version.
12    
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.
17    
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.
21    
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 -------------------------------------------------------------------------*/
26 /*
27 ** $Id$
28 */
29
30 #ifndef __STRING_H      /* { */
31 #define __STRING_H 1
32
33 #ifndef NULL
34 # define NULL (void *)0
35 #endif
36
37 #ifndef _SIZE_T_DEFINED
38 # define _SIZE_T_DEFINED
39   typedef unsigned int size_t;
40 #endif
41
42 extern char *strcat (char *, char *);
43 extern char *strchr (char *, char);
44 extern int   strcmp (char *, char *);
45 extern char *strcpy (char *, char *);
46 extern int   strcspn(char *, char *);
47 extern int   strlen (char *);
48 extern char *strlwr (char *);
49 extern char *strncat(char *, char *, size_t );
50 extern int   strncmp(char *, char *, size_t );
51 extern char *strncpy(char *, char *, size_t );
52 extern char *strpbrk(char *, char *);
53 extern char *strrchr(char *, char);
54 extern int   strspn (char *, char *);
55 extern char *strstr (char *, char *);
56 extern char *strtok (char *, char *);
57 extern char *strupr (char *);
58
59 extern void *memccpy(void *, void *, int, size_t);
60 extern void *memchr(void *, char, size_t);
61 extern int   memcmp (void *, void *, size_t);
62 extern void *memcpy (void *, void *, size_t);
63 extern void *memmove (void *, void *, size_t);
64 extern void *memrchr(void *, char, size_t);
65 extern void *memset (void *, unsigned char, size_t );
66
67 #endif  /* } */