J
Jakob Bieling
Hi,
whenever I try to read input from stdin, the called function (ie.
std::cin.read ()) blocks until my buffer is full. But I want to function
to return immediately, regardless of having read something or not. Is
this possible? Here's the tiny code that blocks:
#include <iostream>
int main ()
{
char tmp [64];
std::cin.read (tmp, sizeof tmp);
}
Thank you
whenever I try to read input from stdin, the called function (ie.
std::cin.read ()) blocks until my buffer is full. But I want to function
to return immediately, regardless of having read something or not. Is
this possible? Here's the tiny code that blocks:
#include <iostream>
int main ()
{
char tmp [64];
std::cin.read (tmp, sizeof tmp);
}
Thank you