Commit 1400f577 authored by rswindell's avatar rswindell
Browse files

Created ftouch() function.

Updated nopen() and fnopen() prototypes to take const char* for filename.
parent 50a0c1c7
......@@ -43,7 +43,7 @@
/* number of times if the attempted file is already open or denying access */
/* for some other reason. All files are opened in BINARY mode. */
int nopen(char *str, int access)
int nopen(const char* str, int access)
int file,share,count=0;
......@@ -64,7 +64,7 @@ int nopen(char *str, int access)
/* This function performs an nopen, but returns a file stream with a buffer */
/* allocated. */
FILE* fnopen(int *fd, char *str, int access)
FILE* fnopen(int* fd, const char* str, int access)
char mode[128];
int file;
......@@ -100,3 +100,15 @@ FILE* fnopen(int *fd, char *str, int access)
BOOL ftouch(const char* fname)
int file;
......@@ -937,8 +937,9 @@ int pstrcmp(char **str1, char **str2); /* Compares pointers to pointers */
int strsame(char *str1, char *str2); /* Compares number of same chars */
/* nopen.c */
int nopen(char *str, int access);
FILE * fnopen(int *file, char *str, int access);
int nopen(const char* str, int access);
FILE * fnopen(int* file, const char* str, int access);
BOOL ftouch(const char* fname);
/* load_cfg.c */
BOOL md(char *path);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment