Lines Matching defs:file
28 // In the library when the stdout is redirected to a file it is no
54 FILE* file = fopen(filename.c_str(), "wb");
55 assert(file);
57 std::vprint_unicode(file, fmt, std::make_format_args(args...));
58 std::fclose(file);
70 FILE* file = fopen(filename.c_str(), "wb");
71 assert(file);
81 std::vprint_unicode(file, fmt, std::make_format_args(args...)));
83 fclose(file);
89 FILE* file = fopen(filename.c_str(), "wb");
90 assert(file);
92 int mode = std::fwide(file, 1);
103 std::vprint_unicode(file, "hello", std::make_format_args()));
108 FILE* file = fopen(filename.c_str(), "r");
109 assert(file);
120 std::vprint_unicode(file, "hello", std::make_format_args()));
126 FILE* file = fopen(filename.c_str(), "w");
127 assert(file);
129 std::vprint_unicode(file, "\n", std::make_format_args());
131 assert(std::ftell(file) == 1);
133 assert(std::ftell(file) == 2);
138 FILE* file = fopen(filename.c_str(), "wb");
139 assert(file);
141 std::vprint_unicode(file, "\n", std::make_format_args());
142 assert(std::ftell(file) == 1);