mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-10-02 06:21:05 +02:00
add append mode to front end
This commit is contained in:
parent
ccf03370f7
commit
c370434dcf
@ -164,7 +164,7 @@ trexio_t* trexio_open(const char* file_name, const char mode, const back_end_t b
|
|||||||
if (back_end < 0) return NULL;
|
if (back_end < 0) return NULL;
|
||||||
if (back_end >= TREXIO_INVALID_BACK_END) return NULL;
|
if (back_end >= TREXIO_INVALID_BACK_END) return NULL;
|
||||||
|
|
||||||
if (mode != 'r' && mode != 'w') return NULL;
|
if (mode != 'r' && mode != 'w' && mode != 'a') return NULL;
|
||||||
|
|
||||||
trexio_t* result = NULL;
|
trexio_t* result = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user