Merge pull request #160 from Cuyler36/link_sprintf

Link libc64/sprintf.c
This commit is contained in:
Cuyler36
2023-11-25 13:03:56 -05:00
committed by GitHub
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ libc64/qrand.c:
.sdata: [0x80217de8, 0x80217df0]
.sbss: [0x80218640, 0x80218648]
.sdata2: [0x80219130, 0x80219138]
#libc64/sprintf.c:
# .text: [0x8005ce18, 0x8005cf08]
libc64/sprintf.c:
.text: [0x8005ce18, 0x8005cf08]
#libc64/malloc.c:
# .text: [0x8005cf08, 0x8005d01c]
# .bss: [0x80206F30, 0x80206F60]
+2
View File
@@ -1,6 +1,8 @@
#ifndef SPRINTF_H
#define SPRINTF_H
#include "types.h"
s32 sprintf(char* dst, const char* fmt, ...);
#endif
+1 -1
View File
@@ -4,7 +4,7 @@
#include "_mem.h"
static void* proutPrintf(void* dst, const char* fmt, size_t size) {
static void* proutPrintf(void* dst, const char* fmt, int size) {
return (void*)((u8*)memcpy(dst, fmt, size) + size);
}