ecos/fosi.c
Go to the documentation of this file.
1 /***************************************************************************
2  tag: Peter Soetens Mon Jan 10 15:59:15 CET 2005 fosi.c
3 
4  fosi.c - description
5  -------------------
6  begin : Mon January 10 2005
7  copyright : (C) 2005 Peter Soetens
8  email : peter.soetens@mech.kuleuven.ac.be
9 
10  ***************************************************************************
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2.1 of the License, or (at your option) any later version. *
15  * *
16  * This library is distributed in the hope that it will be useful, *
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19  * Lesser General Public License for more details. *
20  * *
21  * You should have received a copy of the GNU Lesser General Public *
22  * License along with this library; if not, write to the Free Software *
23  * Foundation, Inc., 59 Temple Place, *
24  * Suite 330, Boston, MA 02111-1307 USA *
25  * *
26  ***************************************************************************/
27 
28 #include <rtt/os/fosi.h>
29 #include <unistd.h>
30 #include <stdarg.h>
31 
32 #undef rtos_printf
33 int rtos_printf(const char *fmt, ...)
34 {
35  va_list list;
36  char printkbuf [2000];
37  printkbuf[0] = '\0';
38  va_start (list, fmt);
39  vsprintf(printkbuf, fmt, list);
40  va_end (list);
41  return printf(printkbuf);
42 }
int rtos_printf(const char *fmt,...)
Definition: ecos/fosi.c:33


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:24