Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一些 lib 从 win32 平台移植到 Mac OS。有一些函数使用 _stprintf_s 来安全地初始化字符串。
Objective-C++中有没有类似_stprintf_s的函数?
最后我发现swprintf哪个可以作为一个很好的替代品。
swprintf
int swprintf(wchar_t *restrict ws, size_t n, const wchar_t *restrict format, ...);