Skip to content
Snippets Groups Projects
Commit 7b06bd53 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

add file access mode flag "b". This flag has no effect on POSIX systems, but...

add file access mode flag "b". This flag has no effect on POSIX systems, but on Windows it disables special handling of '\n' and '\x1A'
parent 1decb258
Branches
No related tags found
1 merge request!9update the header definition according to PLATO-UVIE-PL-UM-0001 Draft 6
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
...@@ -1148,7 +1148,7 @@ ssize_t read_file8(const char *file_name, uint8_t *buf, uint32_t n_word, int ver ...@@ -1148,7 +1148,7 @@ ssize_t read_file8(const char *file_name, uint8_t *buf, uint32_t n_word, int ver
abort(); abort();
errno = 0; errno = 0;
fp = fopen(file_name, "r"); fp = fopen(file_name, "rb");
if (fp == NULL) if (fp == NULL)
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment