Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
247 B

// assume __gnu_cxx::stdio_filebuf is available if this program compiles
#include <ext/stdio_filebuf.h>
#include <iostream>
int main() {
const int fd = 0;
__gnu_cxx::stdio_filebuf<char> buf(fd, std::ios_base::in);
return buf.fd();