Lines Matching defs:file
47 FILE* file = fopen(filename.c_str(), "wb");
48 assert(file);
50 std::vprint_nonunicode(file, fmt, std::make_format_args(args...));
51 std::fclose(file);
63 FILE* file = fopen(filename.c_str(), "wb");
64 assert(file);
74 std::vprint_nonunicode(file, fmt, std::make_format_args(args...)));
76 fclose(file);
82 FILE* file = fopen(filename.c_str(), "wb");
83 assert(file);
85 int mode = std::fwide(file, 1);
96 std::vprint_nonunicode(file, "hello", std::make_format_args()));
101 FILE* file = fopen(filename.c_str(), "r");
102 assert(file);
113 std::vprint_nonunicode(file, "hello", std::make_format_args()));
119 FILE* file = fopen(filename.c_str(), "w");
120 assert(file);
122 std::vprint_nonunicode(file, "\n", std::make_format_args());
124 assert(std::ftell(file) == 1);
126 assert(std::ftell(file) == 2);
131 FILE* file = fopen(filename.c_str(), "wb");
132 assert(file);
134 std::vprint_nonunicode(file, "\n", std::make_format_args());
135 assert(std::ftell(file) == 1);