APM:Libraries
stdio.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Siddharth Bharat Purohit 2017
3  * This file is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by the
5  * Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * This file is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #pragma once
18 
19 #include "posix.h"
20 #include <stdarg.h>
21 #include <stdint.h>
22 #include <stddef.h>
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 int vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
28 int snprintf(char *str, size_t size, const char *fmt, ...);
29 int vasprintf(char **strp, const char *fmt, va_list ap);
30 int asprintf(char **strp, const char *fmt, ...);
31 int vprintf(const char *fmt, va_list arg);
32 int printf(const char *fmt, ...);
33 #if defined(USE_FATFS) || (defined(HAL_OS_FATFS_IO) && HAL_OS_FATFS_IO)
34 int fscanf ( FILE * stream, const char * format, ... );
35 #endif
36 
37 int scanf (const char *fmt, ...);
38 int sscanf (const char *buf, const char *fmt, ...);
39 int vsscanf (const char *buf, const char *s, va_list ap);
40 void *malloc(size_t size);
41 void *calloc(size_t nmemb, size_t size);
42 void free(void *ptr);
43 
44 extern int (*vprintf_console_hook)(const char *fmt, va_list arg);
45 
46 #ifdef __cplusplus
47 }
48 #endif
int vasprintf(char **strp, const char *fmt, va_list ap)
Definition: stdio.c:76
void * calloc(size_t nmemb, size_t size)
Definition: malloc.c:76
int(* vprintf_console_hook)(const char *fmt, va_list arg)
Definition: stdio.c:111
int asprintf(char **strp, const char *fmt,...)
Definition: stdio.c:91
int printf(const char *fmt,...)
Definition: stdio.c:113
int sscanf(const char *buf, const char *fmt,...)
Definition: stdio.c:136
int vprintf(const char *fmt, va_list arg)
Definition: stdio.c:100
const char * fmt
Definition: Printf.cpp:14
void free(void *ptr)
Definition: malloc.c:81
int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
Definition: stdio.c:34
int scanf(const char *fmt,...)
Definition: stdio.c:127
int vsscanf(const char *buf, const char *s, va_list ap)
int snprintf(char *str, size_t size, const char *fmt,...)
Definition: stdio.c:64
void * malloc(size_t size)
Definition: malloc.c:61