file_size.c

v22.2b14/testsuite/single/tests/efuns/file_size.c · 163 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

void do_tests() {
    string str = "This is a test";
    rm("/test_file");
    write_file("/test_file", str);
    ASSERT(file_size("test_file") == strlen(str));
}

Site Stats

Snippets: 1791
Codebases: 571