Files
uClibcpp/tests/streambuftest.cpp
Garrett Kajmowicz 4daa6557b1 Assume that we offer C99 functions
Start using proper function hiding in header files
2005-06-15 14:03:26 +00:00

19 lines
333 B
C++

#include <iostream>
#include <fstream>
int main(){
//We will work on the stream buffer for std::cin
std::streambuf * buf;
buf = std::cin.rdbuf();
int c;
while ( (c = buf->snextc()) != std::char_traits<char>::eof() ){
std::cout << "Read in char: " << std::char_traits<char>::to_char_type(c) << std::endl;
}
return 0;
}