-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenfile.h
More file actions
29 lines (23 loc) · 764 Bytes
/
openfile.h
File metadata and controls
29 lines (23 loc) · 764 Bytes
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
27
28
29
//==============================================================================
// File: openfile.h
//
// Copyright (c) 2017, Phil Harvey, Queen's University
//==============================================================================
#ifndef __openfile__
#define __openfile__
#include <stdio.h>
#define FILENAME_LEN 512
#ifdef __cplusplus
extern "C" {
#endif
FILE * openFile(char *name, char *mode, char *searchPath);
FILE * openAltFile(char *name,char *mode,char *searchPath,char *altExt);
FILE * createAltFile(char *name, char *mode, char *altExt);
FILE * openPlainFile(char *name, char *mode);
char * getOpenFileName(void);
char * getOpenFileNameNoPath(void);
void putOpenFileName( char *p );
#ifdef __cplusplus
}
#endif
#endif