Merge pull request #4 from Cuyler36/libc64/aprintf

Add libc64/aprintf.c
This commit is contained in:
Prakxo
2023-02-22 23:29:01 +01:00
committed by GitHub
6 changed files with 50 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef APRINTF_H
#define APRINTF_H
#include "types.h"
#include "va_args.h"
#ifdef __cplusplus
extern "C"{
#endif
typedef struct {
void* (*prout_func)(void*, const char*, int);
} aprout_func_t;
extern int vaprintf(aprout_func_t* func, const char* fmt, va_list ap);
#ifdef __cplusplus
}
#endif
#endif
+16
View File
@@ -0,0 +1,16 @@
#ifndef XRINTF_H
#define XRINTF_H
#include "types.h"
#include "va_args.h"
#ifdef __cplusplus
extern "C"{
#endif
extern int _Printf(void* (*prout_func)(void*, const char*, int), void* arg, const char* fmt, va_list ap);
#ifdef __cplusplus
}
#endif
#endif