Implement snprintf_s

This commit is contained in:
igor725 2024-06-03 09:54:12 +03:00
parent 84c77ed5f0
commit 4545519f12
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -52,6 +52,10 @@ EXPORT SYSV_ABI int __NID(snprintf)(char* s, size_t n, const char* format, va_li
return std::snprintf(s, n, format, args);
}
EXPORT SYSV_ABI int __NID(snprintf_s)(char* s, size_t bufsz, size_t n, const char* format, va_list args) {
return ::_snprintf_s(s, bufsz, n, format, args);
}
EXPORT SYSV_ABI int __NID(fflush)(FILE* stream) {
return std::fflush(stream);
}