my_printf.h 952 Bytes
/* -----------------------------------------------------------------------------
 *  Copyright (C) 2019-2020 daiteq s.r.o.                 http://www.daiteq.com
 *
 *  This program is distributed WITHOUT ANY WARRANTY; without even
 *  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 *  PURPOSE.
 *
 * -----------------------------------------------------------------------------
 *  Filename    : my_printf.h
 *  Authors     : Martin Danek
 *  Description : simple printf
 *  Release     :
 *  Version     : 1.0
 *  Date        : 16.02.2019
 * -----------------------------------------------------------------------------
 */

#ifndef MY_PRINTF_H

#define MY_PRINTF_H

#include <stdarg.h>
#include <stddef.h>

#define FILE void
//#define stdout 0

extern FILE *stderr;
extern FILE *stdout;

#define printf printf_
int printf_(char const *fmt, ...);

#define fprintf fprintf_
int fprintf_(FILE *file, char const *fmt, ...);

#endif