Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/phcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,17 @@ static FILE *file_options_load_aux(void)
return NULL;
}

int file_options_exists(void)
{
FILE *handle=file_options_load_aux();
if(handle!=NULL)
{
fclose(handle);
return 1;
}
return 0;
}

int file_options_save(const file_enable_t *files_enable)
{
FILE *handle;
Expand Down
5 changes: 5 additions & 0 deletions src/phcfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ int file_options_save(const file_enable_t *files_enable);
@*/
int file_options_load(file_enable_t *files_enable);

/*@
@ assigns \nothing;
@*/
int file_options_exists(void);

#ifdef __cplusplus
} /* closing brace for extern "C" */
#endif
Expand Down
Loading