mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
Decomped strcat
Decomped by @chordtoll
This commit is contained in:
parent
0f4b279870
commit
f05560c5d9
File diff suppressed because it is too large
Load Diff
2212
asm/include/main_020897DC.inc
Normal file
2212
asm/include/main_020897DC.inc
Normal file
File diff suppressed because it is too large
Load Diff
34294
asm/main_02089694.s
34294
asm/main_02089694.s
File diff suppressed because it is too large
Load Diff
34279
asm/main_020897DC.s
Normal file
34279
asm/main_020897DC.s
Normal file
File diff suppressed because it is too large
Load Diff
6
include/main_020897AC.h
Normal file
6
include/main_020897AC.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef PMDSKY_MAIN_020897AC_H
|
||||
#define PMDSKY_MAIN_020897AC_H
|
||||
|
||||
char* strcat(char* dest, const char* src);
|
||||
|
||||
#endif //PMDSKY_MAIN_020897AC_H
|
||||
2
main.lsf
2
main.lsf
|
|
@ -46,6 +46,8 @@ Static main
|
|||
Object asm/main_0207F894.o
|
||||
Object src/main_02089678.o
|
||||
Object asm/main_02089694.o
|
||||
Object src/main_020897AC.o
|
||||
Object asm/main_020897DC.o
|
||||
}
|
||||
|
||||
Autoload ITCM
|
||||
|
|
|
|||
17
src/main_020897AC.c
Normal file
17
src/main_020897AC.c
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "main_020897AC.h"
|
||||
|
||||
char* strcat(char* dest, const char* src) {
|
||||
char *end_of_dest = dest;
|
||||
char *appended_point;
|
||||
while ((*(end_of_dest++)) != 0) {}
|
||||
|
||||
end_of_dest--;
|
||||
do {
|
||||
char src_char = *(src++);
|
||||
char *append_point = end_of_dest;
|
||||
append_point = end_of_dest++;
|
||||
*append_point = src_char;
|
||||
appended_point = &(*append_point);
|
||||
if ((*appended_point) == 0) return dest;
|
||||
} while (1);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user