Files
uClibcxx/tests/streambuftest.cpp
pig2014 d068332b88 feat: initial commit
Code is from cxx.uclibc.org, modified by catty to implement c++17
features
2025-03-26 09:29:24 +08: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;
}