LCOV - code coverage report
Current view: top level - lib/libc/minimal/include - stdio.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 12 0.0 %
Date: 2022-08-18 11:36:24 Functions: 0 12 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /* stdio.h */
       2                 :            : 
       3                 :            : /*
       4                 :            :  * Copyright (c) 2014 Wind River Systems, Inc.
       5                 :            :  *
       6                 :            :  * SPDX-License-Identifier: Apache-2.0
       7                 :            :  */
       8                 :            : 
       9                 :            : #ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDIO_H_
      10                 :            : #define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDIO_H_
      11                 :            : 
      12                 :            : #include <toolchain.h>
      13                 :            : #include <stdarg.h>     /* Needed to get definition of va_list */
      14                 :            : #include <stddef.h>
      15                 :            : 
      16                 :            : #ifdef __cplusplus
      17                 :            : extern "C" {
      18                 :            : #endif
      19                 :            : 
      20                 :            : #if !defined(__FILE_defined)
      21                 :            : #define __FILE_defined
      22                 :            : typedef int  FILE;
      23                 :            : #endif
      24                 :            : 
      25                 :            : #if !defined(EOF)
      26                 :            : #define EOF  (-1)
      27                 :            : #endif
      28                 :            : 
      29                 :            : #define stdin  ((FILE *) 1)
      30                 :            : #define stdout ((FILE *) 2)
      31                 :            : #define stderr ((FILE *) 3)
      32                 :            : 
      33                 :          0 : int __printf_like(1, 2) printf(const char *ZRESTRICT format, ...);
      34         [ #  # ]:          0 : int __printf_like(3, 4) snprintf(char *ZRESTRICT str, size_t len,
      35                 :            :                                  const char *ZRESTRICT format, ...);
      36                 :          0 : int __printf_like(2, 3) sprintf(char *ZRESTRICT str,
      37                 :            :                                 const char *ZRESTRICT format, ...);
      38                 :          0 : int __printf_like(2, 3) fprintf(FILE *ZRESTRICT stream,
      39                 :            :                                 const char *ZRESTRICT format, ...);
      40                 :            : 
      41                 :            : 
      42                 :          0 : int __printf_like(1, 0) vprintf(const char *ZRESTRICT format, va_list list);
      43         [ #  # ]:          0 : int __printf_like(3, 0) vsnprintf(char *ZRESTRICT str, size_t len,
      44                 :            :                                   const char *ZRESTRICT format,
      45                 :            :                                   va_list list);
      46                 :          0 : int __printf_like(2, 0) vsprintf(char *ZRESTRICT str,
      47                 :            :                                  const char *ZRESTRICT format, va_list list);
      48                 :          0 : int __printf_like(2, 0) vfprintf(FILE *ZRESTRICT stream,
      49                 :            :                                  const char *ZRESTRICT format,
      50                 :            :                                  va_list ap);
      51                 :            : 
      52                 :          0 : int puts(const char *s);
      53                 :            : 
      54                 :          0 : int fputc(int c, FILE *stream);
      55                 :          0 : int fputs(const char *ZRESTRICT s, FILE *ZRESTRICT stream);
      56                 :          0 : size_t fwrite(const void *ZRESTRICT ptr, size_t size, size_t nitems,
      57                 :            :               FILE *ZRESTRICT stream);
      58                 :            : static inline int putc(int c, FILE *stream)
      59                 :            : {
      60                 :            :         return fputc(c, stream);
      61                 :            : }
      62                 :            : static inline int putchar(int c)
      63                 :            : {
      64                 :            :         return putc(c, stdout);
      65                 :            : }
      66                 :            : 
      67                 :            : #ifdef __cplusplus
      68                 :            : }
      69                 :            : #endif
      70                 :            : 
      71                 :            : #endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDIO_H_ */

Generated by: LCOV version 1.14