my_printf.h
952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* -----------------------------------------------------------------------------
* 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