GRSISort
"v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
FullPath.cxx
Go to the documentation of this file.
1
#include "
FullPath.h
"
2
3
//#ifdef __LINUX__
4
5
#include <cstdlib>
6
#include <climits>
7
#include <array>
8
9
std::string
full_path
(
const
std::string& path)
10
{
11
std::array<char, PATH_MAX + 1> buff;
12
char
* success = realpath(path.c_str(), buff.data());
13
if
(success !=
nullptr
) {
14
return
{buff.data()};
// this ensures that we stop at the string limiting \0 (whereas buff.begin() to buff.end() would use all PATH_MAX+1 characters of the array)
15
}
16
// TODO: Give some sort of error message.
17
return
""
;
18
}
19
//#endif
20
21
// TODO: Make a windows version.
full_path
std::string full_path(const std::string &path)
Definition
FullPath.cxx:9
FullPath.h
libraries
TGRSIint
FullPath.cxx
GRSISort ("v4.0.0.5") Reference Guide Generated on Sat Jun 28 2025 00:50:15.