PRCYCoin  2.0.0.7rc1
P2P Digital Currency
fs.cpp
Go to the documentation of this file.
1 // Copyright (c) 2017-2020 The Bitcoin Core developers
2 // Copyright (c) 2020 The PIVX developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #include "fs.h"
7 
8 #define BOOST_FILESYSTEM_NO_DEPRECATED
9 #include <boost/filesystem.hpp>
10 
11 namespace fsbridge {
12 
13 FILE *fopen(const fs::path& p, const char *mode)
14 {
15  return ::fopen(p.string().c_str(), mode);
16 }
17 
18 FILE *freopen(const fs::path& p, const char *mode, FILE *stream)
19 {
20  return ::freopen(p.string().c_str(), mode, stream);
21 }
22 
23 } // fsbridge
fs.h
fsbridge::fopen
FILE * fopen(const fs::path &p, const char *mode)
Definition: fs.cpp:13
fsbridge::freopen
FILE * freopen(const fs::path &p, const char *mode, FILE *stream)
Definition: fs.cpp:18
fsbridge
Filesystem operations and types.
Definition: fs.cpp:11