Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
printf.h
Go to the documentation of this file.
1 /*
2  ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
3  2011,2012 Giovanni Di Sirio.
4 
5  This file is part of ChibiOS/RT.
6 
7  ChibiOS/RT is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  ChibiOS/RT is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
29 #ifndef _PRINTF_H_
30 #define _PRINTF_H_
31 
32 #include <stdarg.h>
36 #if !defined(CHPRINTF_USE_FLOAT) || defined(__DOXYGEN__)
37 #define CHPRINTF_USE_FLOAT TRUE
38 #endif
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 void directchprintf(BaseSequentialStream *chp, const char *fmt, ...);
44 void directchvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap);
45 // __attribute__ ((format (printf, 2, 3)));
46 void chvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap);
47 void chsnprintf(char *buffer, size_t size, const char *fmt, ...);
48 // __attribute__ ((format (printf, 3, 4)));
49 void chprintf(BaseSequentialStream *lchp, const char *fmt, ...) ;
50 void chvprintf(BaseSequentialStream *lchp, const char *fmt, va_list ap);
51 void smchsnprintf(char *buffer, size_t size, const char *fmt, ...);
52 void smchvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* _PRINTF_H_ */
59 
void directchvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap)
Definition: printf.c:367
void chsnprintf(char *buffer, size_t size, const char *fmt,...)
Definition: printf.c:377
void chprintf(BaseSequentialStream *lchp, const char *fmt,...)
Definition: printf.c:395
void directchprintf(BaseSequentialStream *chp, const char *fmt,...)
Definition: printf.c:386
void smchvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap)
Definition: printf.c:453
void chvprintf(BaseSequentialStream *lchp, const char *fmt, va_list ap)
Definition: printf.c:415
void chvsnprintf(char *buffer, size_t size, const char *fmt, va_list ap)
Definition: printf.c:372
void smchsnprintf(char *buffer, size_t size, const char *fmt,...)
Definition: printf.c:432