Lines Matching defs:output

46 /// Same as fgets, but removes any trailing newline from the output string.
48 /// \param [out] str Pointer to the output buffer.
49 /// \param size Length of the output buffer.
52 /// \return A pointer to the output buffer if successful; otherwise NULL.
138 /// \param [in,out] output Buffer onto which to write the quoted string.
141 print_quoted(char* line, FILE* output, const bool surrounding)
144 fprintf(output, "'");
150 fprintf(output, "%s\\%c", line, quote);
155 fprintf(output, "%s'", line);
157 fprintf(output, "%s", line);
232 /// Parses a single test case and writes it to the output.
241 /// \param [in,out] output File to which to write the parsed test case.
247 parse_test_case(FILE* input, FILE* output, char* name)
252 fprintf(output, "test_case{name=");
253 print_quoted(name, output, true);
266 fprintf(output, ", ['custom.");
267 print_quoted(key, output, false);
268 fprintf(output, "']=");
269 print_quoted(value, output, true);
271 fprintf(output, ", %s=", out_key);
272 print_quoted(value, output, true);
277 fprintf(output, "}\n");
283 /// Rewrites the test cases list from the input to the output.
288 /// \param [out] output Stream to which to write the generic list.
292 parse_tests(FILE* input, FILE* output)
309 error = parse_test_case(input, output, value);
333 /// \param [in,out] output File to which to write the Kyua definition.
336 /// is an error, the output may not be consistent and should not be used.
338 atf_list_parse(const int fd, FILE* output)
349 error = parse_tests(input, output);