blob: b93ed9e90293d8a0fc8888ce476e33fcf38f1dcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef FILE_HANDLING_TEST_H
#define FILE_HANDLING_TEST_H
#include "config.h"
#include "stdlib.h"
#include "sntptest.h"
#include <string.h>
#include <unistd.h>
enum DirectoryType {
INPUT_DIR = 0,
OUTPUT_DIR = 1
};
#define SRCDIR_DEF "@abs_srcdir@/data/";
extern const char * CreatePath(const char* filename,
enum DirectoryType argument);
extern void DestroyPath(const char* pathname);
extern int GetFileSize(FILE *file);
extern bool CompareFileContent(FILE* expected, FILE* actual);
extern void ClearFile(const char * filename) ;
#endif // FILE_HANDLING_TEST_H
|