LibC: Implement {f,}putwc()

This commit is contained in:
Ali Mohammad Pur 2021-12-20 16:08:03 +03:30 committed by Ali Mohammad Pur
commit cb90856756
Notes: sideshowbarker 2024-07-17 22:29:35 +09:00
4 changed files with 40 additions and 1 deletions

View file

@ -341,6 +341,11 @@ FILE::Buffer::~Buffer()
free(m_data);
}
bool FILE::Buffer::may_use() const
{
return m_ungotten || m_mode != _IONBF;
}
void FILE::Buffer::realize(int fd)
{
if (m_mode == -1)