fosi.c
Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: Peter Soetens  Mon Jan 10 15:59:15 CET 2005  fosi.c
00003 
00004                         fosi.c -  description
00005                            -------------------
00006     begin                : Mon January 10 2005
00007     copyright            : (C) 2005 Peter Soetens
00008     email                : peter.soetens@mech.kuleuven.ac.be
00009 
00010  ***************************************************************************
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place,                                    *
00024  *   Suite 330, Boston, MA  02111-1307  USA                                *
00025  *                                                                         *
00026  ***************************************************************************/
00027 
00028 #include <rtt/os/fosi.h>
00029 #include <unistd.h>
00030 #include <stdarg.h>
00031 
00032 #undef rtos_printf
00033 int rtos_printf(const char *fmt, ...)
00034 {
00035     va_list list;
00036     char printkbuf [2000];
00037     printkbuf[0] = '\0';
00038     va_start (list, fmt);
00039     vsprintf(printkbuf, fmt, list);
00040     va_end (list);
00041     return printf(printkbuf);
00042 }


rtt
Author(s): RTT Developers
autogenerated on Thu Jan 2 2014 11:35:21