FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_GetAbsolutePathByTypeFile.c
Go to the documentation of this file.
1#include <string.h>
2#include "libFireBird.h"
3
4bool HDD_GetAbsolutePathByTypeFile(TYPE_File *File, char *AbsFileName)
5{
7
8 dword *d;
9 bool ret;
10
11 ret = FALSE;
12 if(AbsFileName) AbsFileName[0] = '\0';
13
14 if(File && AbsFileName)
15 {
16 //TYPE_File->handle points to a structure with 4 dwords. The third one points to the absolute path
17 d = File->handle;
18 if(d && d[2])
19 {
20 strcpy(AbsFileName, (char*)d[2]);
21 ret = TRUE;
22 }
23 }
24
25 TRACEEXIT();
26 return ret;
27}
bool HDD_GetAbsolutePathByTypeFile(TYPE_File *File, char *AbsFileName)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243