Lines Matching defs:file
23 // In the library when the stdout is redirected to a file it is no
53 FILE* file = fopen(filename.c_str(), "wb");
54 assert(file);
56 std::println(file, fmt, std::forward<Args>(args)...);
57 std::fclose(file);
76 FILE* file = fopen(filename.c_str(), "wb");
77 assert(file);
79 int mode = std::fwide(file, 1);
90 std::println(file, "hello"));
95 FILE* file = fopen(filename.c_str(), "r");
96 assert(file);
107 std::println(file, "hello"));
113 FILE* file = fopen(filename.c_str(), "w");
114 assert(file);
116 std::println(file, "");
118 assert(std::ftell(file) == 1);
120 assert(std::ftell(file) == 2);
125 FILE* file = fopen(filename.c_str(), "wb");
126 assert(file);
128 std::println(file, "");
129 assert(std::ftell(file) == 1);
136 FILE* file = fopen(filename.c_str(), "w");
137 assert(file);
139 std::println(file);
141 assert(std::ftell(file) == 1);
143 assert(std::ftell(file) == 2);
148 FILE* file = fopen(filename.c_str(), "wb");
149 assert(file);
151 std::println(file);
152 assert(std::ftell(file) == 1);