]> git.gag.com Git - fw/sdcc/blob - device/include/pic16/stdio.h
daf5d204b1617c559243cbe38161ba394d7b359c
[fw/sdcc] / device / include / pic16 / stdio.h
1 /*-------------------------------------------------------------------------
2   stdio.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_STDIO_H
32 #define __PIC16_STDIO_H 1
33
34 /* link the C library */
35 #pragma library c
36
37 #include <stdarg.h>
38
39 #include <sdcc-lib.h>
40
41 #ifndef NULL
42   #define NULL (void *)0
43 #endif
44
45 #ifndef _SIZE_T_DEFINED
46 #define _SIZE_T_DEFINED
47   typedef unsigned int size_t;
48 #endif
49
50 //typedef void (*pfn_outputchar)(char c, void* p) _REENTRANT;
51
52 //extern int _print_format (pfn_outputchar pfn, void* pvoid, const char *format, va_list ap);
53
54 /*-----------------------------------------------------------------------*/
55
56 extern void printf_small(char *, ...);
57
58 extern int printf (char *,...);
59 extern int vprintf (char *, va_list);
60
61 extern int sprintf (char *, const char *, ...);
62 extern int vsprintf (char *, const char *, va_list);
63
64 extern int puts(char *);
65
66 #pragma wparam putchar
67 extern void putchar(char);
68
69 extern char *gets(char *);
70 extern char getchar(void);
71
72 #endif /* __PIC16_STDIO_H */