File: stdio_filebuf.cpp

package info (click to toggle)
martchus-cpp-utilities 5.33.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,396 kB
  • sloc: cpp: 12,679; awk: 18; ansic: 12; makefile: 10
file content (10 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
// 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();
}