Data Structure SFILE.
More...
Go to the source code of this file.
◆ sfile_checkExists()
bool sfile_checkExists |
( |
const char * |
fname | ) |
|
Checks to see if AdH file exists.
- Author
- Corey Trahan, Ph.D.
- Bug:
- none
- Warning
- none
- Copyright
- AdH
- Parameters
-
[in,out] | fname | (const char *) the filename |
[out] | a | binary switch - 1 file exists, 0 file does not exist |
- Note
◆ sfile_init()
void sfile_init |
( |
SFILE * |
file | ) |
|
Initializes an AdH SFILE.
- Author
- Corey Trahan, Ph.D.
- Bug:
- none
- Warning
- none
- Copyright
- AdH
- Parameters
-
- Note
◆ sfile_open()
void sfile_open |
( |
SFILE * |
file, |
|
|
char * |
filebase, |
|
|
char * |
ext1, |
|
|
char * |
ext2, |
|
|
char * |
suffix, |
|
|
char * |
mode, |
|
|
int |
stopOnNotFind |
|
) |
| |
Initializes and opens an AdH SFILE.
- Author
- Corey Trahan, Ph.D.
- Bug:
- none
- Warning
- none
- Copyright
- AdH
- Parameters
-
[in,out] | file | (SFILE *) pointer to an AdH SFILE |
[in] | filebase | (char *) the project root name |
[in] | ext1 | (char *) the first filename extension |
[in] | ext2 | (char *) the second filename extension |
[in] | suffix | (char *) the filename suffix |
[in] | mode | (char *) read/write mode to open file as |
[in] | stopOnNotFind | (int) a flag to stop AdH if the file is not found |
- Note