Add libc64/aprintf.c

This commit is contained in:
Cuyler36
2023-02-22 16:24:47 -05:00
parent df41337ebf
commit 90097228a2
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), char* buf, const char* fmt, va_list ap);
#ifdef __cplusplus
}
#endif
#endif