Imported Upstream version 2.9.0
[debian/cc1111] / device / include / string.h
1 /*-------------------------------------------------------------------------
2    string.h - ANSI functions forward declarations    
3   
4        Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
5
6    This program is free software; you can redistribute it and/or modify it
7    under the terms of the GNU General Public License as published by the
8    Free Software Foundation; either version 2, or (at your option) any
9    later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19    
20    In other words, you are welcome to use, share and improve this program.
21    You are forbidden to forbid anyone else to use, share and improve
22    what you give them.   Help stamp out software-hoarding!  
23 -------------------------------------------------------------------------*/
24
25
26 #ifndef __SDC51_STRING_H
27 #define __SDC51_STRING_H 1
28
29 #ifndef NULL
30 # define NULL (void *)0
31 #endif
32
33 #ifndef _SIZE_T_DEFINED
34 # define _SIZE_T_DEFINED
35   typedef unsigned int size_t;
36 #endif
37
38 extern char *strcpy (char *, char *)  ;
39 extern char *strncpy(char *, char *, size_t )  ;
40 extern char *strcat (char *, char *)  ;
41 extern char *strncat(char *, char *, size_t )  ;
42 extern int   strcmp (char *, char *)  ;
43 extern int   strncmp(char *, char *, size_t )  ;
44 extern char *strchr (char *, char  )  ;
45 extern char *strrchr(char *, char  )  ;
46 extern int   strspn (char *, char *)  ;
47 extern int   strcspn(char *, char *)  ;
48 extern char *strpbrk(char *, char *)  ;
49 extern char *strstr (char *, char *)  ;
50 extern int   strlen (char *  )  ;
51 extern char *strtok (char *, char *)  ;
52 extern void *memcpy (void *, void *, size_t )  ;
53 extern int   memcmp (void *, void *, size_t )  ;
54 extern void *memset (void *, unsigned char  , size_t )  ;
55 extern void *memmove (void *, void *, size_t )  ;
56
57 #ifdef SDCC_ds390
58 extern void __xdata * memcpyx(void __xdata *, void __xdata *, int) __naked;
59 #endif
60
61 #ifdef SDCC_z80
62 #define memcpy(dst, src, n) __builtin_memcpy(dst, src, n)
63 #endif
64
65 #endif