This patch adds the file_writer header, which just provides a wrapper for File->write, as well as fprintf to use it. There are no unit tests for file_writer since it's too simple to need them, but fprintf does have a simple test of writing to a file. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D125939
21 lines
637 B
C++
21 lines
637 B
C++
//===-- Implementation header of fprintf ------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_SRC_STDIO_FPRINTF_H
|
|
#define LLVM_LIBC_SRC_STDIO_FPRINTF_H
|
|
|
|
#include <stdio.h>
|
|
|
|
namespace __llvm_libc {
|
|
|
|
int fprintf(::FILE *__restrict stream, const char *__restrict format, ...);
|
|
|
|
} // namespace __llvm_libc
|
|
|
|
#endif // LLVM_LIBC_SRC_STDIO_FPRINTF_H
|