struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / device / include / pic16 / string.h
blob6d90b14657110283d84f9a5baa0a44163762d21f
1 /*-------------------------------------------------------------------------
2 string.h - ANSI functions forward declarations
4 Copyright (C) 1998, Sandeep Dutta . sandeep.dutta@usa.net
5 Ported to PIC16 port by Vangelis Rokas, 2004 <vrokas AT otenet.gr>
7 This library is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
10 later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this library; see the file COPYING. If not, write to the
19 Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
20 MA 02110-1301, USA.
22 As a special exception, if you link this library with other files,
23 some of which are compiled with SDCC, to produce an executable,
24 this library does not by itself cause the resulting executable to
25 be covered by the GNU General Public License. This exception does
26 not however invalidate any other reasons why the executable file
27 might be covered by the GNU General Public License.
28 -------------------------------------------------------------------------*/
30 #ifndef __STRING_H /* { */
31 #define __STRING_H 1
33 #define _STRING_SPEC __data
35 #pragma library c
37 #ifndef NULL
38 # define NULL (void *)0
39 #endif
41 #ifndef _SIZE_T_DEFINED
42 # define _SIZE_T_DEFINED
43 typedef unsigned int size_t;
44 #endif
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 *);
63 void *memccpy(void *, void *, char, size_t);
64 void *memchr(const void *, char, size_t);
65 int memcmp (const void *, const void *, size_t);
66 void *memcpy (void *, const void *, size_t);
67 void *memmove (void *, const void *, size_t);
68 void *memrchr(void *, char, size_t);
69 void *memset (_STRING_SPEC void *, unsigned char, size_t );
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);
76 void *__memcpy (void *, const void *, size_t);
77 #define memcpy __memcpy
79 #endif /* } */