Changeset 7ab7075f in mainline for uspace/app/tester/stdio/stdio2.c


Ignore:
Timestamp:
2018-08-06T18:40:12Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1dcba91
Parents:
7afd12e5
Message:

Add support for 'x' fopen file mode modifier from C11.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/stdio/stdio2.c

    r7afd12e5 r7ab7075f  
    3737{
    3838        FILE *file;
    39         const char *file_name = "/test";
     39        const char *file_name = "/tmp/test";
    4040
    4141        TPRINTF("Open file \"%s\" for writing...", file_name);
    4242        errno = 0;
    43         file = fopen(file_name, "wt");
     43        file = fopen(file_name, "wtx");
    4444        if (file == NULL) {
    4545                TPRINTF("errno = %s\n", str_error_name(errno));
Note: See TracChangeset for help on using the changeset viewer.