mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 15:50:03 +02:00
abs path of abs path, wip
This commit is contained in:
parent
479906a9eb
commit
6aa5cb8d3e
@ -50,6 +50,10 @@ int ConvertToDifferentRange(int inputMin, int inputMax, int outputMin,
|
||||
}
|
||||
|
||||
int getAbsPath(char *buf, size_t bufSize, char *fname) {
|
||||
if (fname[0] == '/') {
|
||||
strcpy(buf, fname);
|
||||
return OK;
|
||||
}
|
||||
// get path of current binary
|
||||
char path[bufSize];
|
||||
memset(path, 0, bufSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user