core
vpl
vpl_fdopen.cxx
Go to the documentation of this file.
1
// This is core/vpl/vpl_fdopen.cxx
2
#include <cstdio>
3
#include "
vpl_fdopen.h
"
4
#ifdef _MSC_VER
5
# include <vcl_msvc_warnings.h>
6
#endif
7
8
std::FILE *
vpl_fdopen
(
int
fd,
char
const
*mode)
9
{
10
#if defined(_WIN32) && !defined(__CYGWIN__)
11
return
_fdopen(fd, mode);
12
#else
13
return
fdopen(fd, mode);
14
#endif
15
}
vpl_fdopen
std::FILE * vpl_fdopen(int fd, char const *mode)
Turn an open file descriptor (int) into a file stream (FILE *).
Definition:
vpl_fdopen.cxx:8
vpl_fdopen.h
Generated by
1.8.15