blob: af2f6fa01ad475dcd362b11deba406ebd9422f33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//===-- Internal implementation of vfscanf ---------------------*- 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
//
//===----------------------------------------------------------------------===//
#include "src/stdio/scanf_core/vfscanf_internal.h"
#include "src/__support/arg_list.h"
#include "src/stdio/scanf_core/file_reader.h"
#include "src/stdio/scanf_core/reader.h"
#include "src/stdio/scanf_core/scanf_main.h"
#include <stdio.h>
namespace __llvm_libc {
namespace scanf_core {
int vfscanf_internal(::FILE *__restrict stream, const char *__restrict format,
internal::ArgList &args) {
FileReader file_reader(stream);
scanf_core::Reader reader(&file_reader);
return scanf_core::scanf_main(&reader, format, args);
}
} // namespace scanf_core
} // namespace __llvm_libc
|