mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-31 17:01:39 -04:00
Merge pull request #160 from Cuyler36/link_sprintf
Link libc64/sprintf.c
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef SPRINTF_H
|
||||
#define SPRINTF_H
|
||||
|
||||
#include "types.h"
|
||||
|
||||
s32 sprintf(char* dst, const char* fmt, ...);
|
||||
|
||||
#endif
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user