1 //===-- C standard library header stdio.h ---------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLVM_LIBC_STDIO_H 10 #define LLVM_LIBC_STDIO_H 11 12 #include "__llvm-libc-common.h" 13 #include "llvm-libc-macros/file-seek-macros.h" 14 #include "llvm-libc-macros/stdio-macros.h" 15 16 #include <stdarg.h> 17 18 #include <llvm-libc-types/size_t.h> 19 20 __BEGIN_C_DECLS 21 22 int getchar(void) __NOEXCEPT; 23 24 int printf(const char *__restrict, ...) __NOEXCEPT; 25 26 int putchar(int) __NOEXCEPT; 27 28 int puts(const char *__restrict) __NOEXCEPT; 29 30 int remove(const char *) __NOEXCEPT; 31 32 int snprintf(char *__restrict, size_t, const char *__restrict, ...) __NOEXCEPT; 33 34 int sprintf(char *__restrict, const char *__restrict, ...) __NOEXCEPT; 35 36 int asprintf(char * *__restrict, const char *__restrict, ...) __NOEXCEPT; 37 38 int vprintf(const char *__restrict, va_list) __NOEXCEPT; 39 40 int vsnprintf(char *__restrict, size_t, const char *__restrict, va_list) __NOEXCEPT; 41 42 int vsprintf(char *__restrict, const char *__restrict, va_list) __NOEXCEPT; 43 44 int vasprintf(char * *__restrict, const char *__restrict, va_list) __NOEXCEPT; 45 46 __END_C_DECLS 47 48 #endif // LLVM_LIBC_STDIO_H 49