Mistake on this page?
Report an issue in GitHub or email us
mbed_printf.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2016 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MBED_PRINTF_H
18 #define MBED_PRINTF_H
19 
20 #include <stdio.h>
21 #include <stdarg.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /**
28  * Minimal printf
29  *
30  * Prints directly to stdio/UART without using malloc.
31  */
32 int mbed_printf(const char *format, ...);
33 
34 /**
35  * Minimal snprintf
36  *
37  * Prints directly to buffer without using malloc.
38  */
39 int mbed_snprintf(char *buffer, size_t length, const char *format, ...);
40 
41 /**
42  * Minimal printf
43  *
44  * Prints directly to stdio/UART without using malloc.
45  */
46 int mbed_vprintf(const char *format, va_list arguments);
47 
48 /**
49  * Minimal snprintf
50  *
51  * Prints directly to buffer without using malloc.
52  */
53 int mbed_vsnprintf(char *buffer, size_t length, const char *format, va_list arguments);
54 
55 /**
56  * Minimal fprintf
57  *
58  * Prints directly to file stream without using malloc.
59  */
60 int mbed_fprintf(FILE *stream, const char *format, ...);
61 
62 /**
63  * Minimal vfprintf
64  *
65  * Prints directly to file stream without using malloc.
66  */
67 int mbed_vfprintf(FILE *stream, const char *format, va_list arguments);
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif // MBED_PRINTF_H
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.