//
// sub_100221800 from 0x100221800 to 0x100221845 (69 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_100221800(int a1, char **a2, size_t a3)
{
char *v3; // rsi
int result; // eax
if ( !a3 || (v3 = *a2) == nullptr )
__assert_rtn("StrError", "format.cpp", 312, "buffer != 0 && buffer_size != 0");
result = strerror_r(a1, v3, a3);
if ( result == -1 )
return *__error();
return result;
}