* src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
[fw/sdcc] / device / include / pic16 / stdlib.h
1 /*-------------------------------------------------------------------------
2   stdlib.h - ANSI functions forward declarations
3
4    Ported to 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 /*
28 ** $Id$
29 */
30
31 #ifndef __PIC16_STDLIB_H
32 #define __PIC16_STDLIB_H 1
33
34 #pragma library c
35
36 #ifndef NULL
37 # define NULL (void *)0
38 #endif
39
40 //#include <malloc.h>
41
42 extern float atof (char *);
43 extern int atoi (char *);
44 extern long atol (char *);
45
46 extern void uitoa(unsigned int, data char *, unsigned char);
47 extern void itoa(int, data char*, unsigned char);
48
49 extern void ultoa(unsigned long, data unsigned char *, unsigned char);
50 extern void ltoa(long, data unsigned char*, unsigned char);
51
52 extern char x_ftoa(float, data char *, unsigned char, unsigned char);
53
54 extern void g_ftoa(data char *, float, char);
55
56 #endif  /* __PIC16_STDLIB_H */