]> pd.if.org Git - pdclib/blobdiff - includes/stdio.h
Added exit, _Exit, atexit.
[pdclib] / includes / stdio.h
index 62b5af18dd6a5deae86bfc2280ee482e23ff7038..df9bfe4261d16de6ec6e309803e7dbdbb4eb07df 100644 (file)
@@ -1,15 +1,30 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-// TODO
-// ----------------------------------------------------------------------------
+/* $Id$ */
 
-#ifndef __STDIO_H
-#define __STDIO_H __STDIO_H
+/* Release $Name$ */
 
-// TODO
+/* Input/output <stdio.h>
 
-#endif // __STDIO_H
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+/* TODO: This is a dummy header to avoid errors when mixing PDCLIB <stdarg.h> */
+/* with glibc <stdio.h>.                                                      */
+
+#ifndef _PDCLIB_STDIO_H
+#define _PDCLIB_STDIO_H _PDCLIB_STDIO_H
+
+#ifndef _PDCLIB_AUX_H
+#define _PDCLIB_AUX_H _PDCLIB_AUX_H
+#include <_PDCLIB_aux.h>
+#endif
+
+typedef void * FILE;
+
+extern void * stderr;
+
+int printf( const char * _PDCLIB_restrict format, ... );
+int fputs( const char * _PDCLIB_restrict s, FILE * _PDCLIB_restrict stream );
+int puts( const char * _PDCLIB_restrict s );
+
+#endif