aboutsummaryrefslogtreecommitdiff
path: root/03-refactor/include/printf.h
blob: ec3eec0c9242e5f924ab5f574962f16c50f75d53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef PRINTF_H_
#define PRINTF_H_

#include <stdarg.h>
#include <stdlib.h>

typedef void(*printf_callback_t)(volatile void*, char);

void printf_format(
    const char* fmt,
    printf_callback_t callback,
    volatile void* callback_closure,
    va_list lst);

#endif /* PRINTF_H_ */