Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
The sources of Petari (https://github.com/SMGCommunity/Petari), the
Super Mario Galaxy decompilation by the SMGCommunity, at commit
0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line
endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and
src/.  Left out: the game data Petari keeps from the original
executable, the error message archive (include/Game/System/
ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and
StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's
own disc.  The port's changes follow in the next commit, so
`git diff petari-base -- decomp` shows them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 01:59:38 +02:00

51 lines
1.0 KiB
Plaintext

#ifndef CSTRING_H
#define CSTRING_H
#include "size_t.h"
#ifdef __cplusplus
extern "C" {
#endif
int strncmp(const char*, const char*, size_t);
void* memcpy(void*, const void*, unsigned long);
void* memmove(void*, const void*, size_t);
void* memchr(const void*, int, size_t);
int memcpi(const void*, const void*, size_t);
int memcmp(const void*, const void*, size_t);
int strcmp(const char*, const char*);
#ifdef __cplusplus
const char* strstr(const char* pString, const char* pPattern);
#else
char* strstr(const char* pString, const char* pPattern);
#endif
char* strcpy(char* pDest, const char* pSrc);
size_t strlen(const char* pStr);
char* strcat(char*, const char*);
char* strncpy(char*, const char*, size_t);
char* strchr(const char*, int);
char* strrchr(const char*, int);
int strcasecmp(const char*, const char*);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
extern "C++" {
inline char* strstr(char* pString, const char* pPattern) {
return const_cast< char* >(strstr(static_cast< const char* >(pString), pPattern));
}
}
#endif
#endif // CSTRING_H