39 #ifndef __STOUT_WINDOWS_FORMAT_HPP__ 40 #define __STOUT_WINDOWS_FORMAT_HPP__ 50 int size = _vscprintf(format, args) + 1;
52 if (size >= 0 && size < INT_MAX) {
53 *buffer = (
char*) malloc(size);
56 result = vsnprintf(*buffer, size, format, args);
68 #endif // __STOUT_WINDOWS_FORMAT_HPP__ Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:130
Try< std::string > format(const std::string &s, const T &...t)
Definition: format.hpp:58