blob: 5a54d9ef28aab491990bda6d0ebf1a902dece960 [file] [log] [blame]
#include <stdplus/print.hpp>
#include <cstdio>
#include <system_error>
namespace stdplus
{
void prints(std::FILE* stream, std::string_view data)
{
int r = std::fwrite(data.data(), sizeof(char), data.size(), stream);
if (r < 0)
{
throw std::system_error(errno, std::generic_category());
}
}
} // namespace stdplus