Imported Upstream version 2.9.0
[debian/cc1111] / 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: string.h 3912 2005-10-26 11:08:11Z tecodev $
28 */
29
30 #ifndef __STRING_H      /* { */
31 #define __STRING_H 1
32
33 #define _STRING_SPEC    __data
34
35 #pragma library c
36
37 #ifndef NULL
38 # define NULL (void *)0
39 #endif
40
41 #ifndef _SIZE_T_DEFINED
42 # define _SIZE_T_DEFINED
43   typedef unsigned int size_t;
44 #endif
45
46 char *strcat (char *, char *);
47 char *strchr (char *, char);
48 int   strcmp (char *, char *);
49 char *strcpy (char *, char *);
50 int   strcspn(char *, char *);
51 int   strlen (char *);
52 char *strlwr (char *);
53 char *strncat(char *, char *, size_t );
54 int   strncmp(char *, char *, size_t );
55 char *strncpy(char *, char *, size_t );
56 char *strpbrk(char *, char *);
57 char *strrchr(char *, char);
58 int   strspn (char *, char *);
59 char *strstr (char *, char *);
60 char *strtok (char *, char *);
61 char *strupr (char *);
62
63 void *memccpy(void *, void *, char, size_t);
64 void *memchr(void *, char, size_t);
65 int   memcmp (void *, void *, size_t);
66 void *memcpy (void *, void *, size_t);
67 void *memmove (void *, void *, size_t);
68 void *memrchr(void *, char, size_t);
69 void *memset (_STRING_SPEC void *, unsigned char, size_t );
70
71 __code void *memchrpgm(__code void *, char, size_t);
72 __data void *memchrram(__data void *, char, size_t);
73 __data void *memcpypgm2ram(__data void *, __code void *, size_t);
74 __data void *memcpyram2ram(__data void *, __data void *, size_t);
75
76
77 #endif  /* } */