AdH Kraken 0.0.0
Next generation Adaptive Hydraulics
Loading...
Searching...
No Matches
sfile.h File Reference

Data Structure SFILE. More...

Go to the source code of this file.

Data Structures

struct  SFILE
 

Functions

void sfile_open (SFILE *file, char *filebase, char *ext1, char *ext2, char *suffix, char *mode, int stopOnNotFind)
 Initializes and opens an AdH SFILE. More...
 
void sfile_init (SFILE *file)
 Initializes an AdH SFILE. More...
 
bool sfile_checkExists (const char *fname)
 Checks to see if AdH file exists. More...
 

Detailed Description

Data Structure SFILE.

Function Documentation

◆ sfile_checkExists()

bool sfile_checkExists ( const char *  fname)

Checks to see if AdH file exists.

Author
Corey Trahan, Ph.D.
Bug:
none
Warning
none
Parameters
[in,out]fname(const char *) the filename
[out]abinary 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
Parameters
[in,out]file(SFILE *) pointer to an AdH SFILE
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
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