BRL-CAD
fb_log.c
Go to the documentation of this file.
1 /* F B _ L O G . C
2  * BRL-CAD
3  *
4  * Copyright (c) 1986-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @addtogroup fb */
21 /** @{ */
22 /** @file fb_log.c
23  *
24  * Log a framebuffer library event in the Standard way.
25  *
26  */
27 /** @} */
28 
29 #include "common.h"
30 
31 #include <stdio.h>
32 #include <stdarg.h>
33 
34 #include "fb.h"
35 
36 
37 /*
38  * Log a framebuffer library event in the Standard way.
39  */
40 #if !defined(_WIN32) || defined(__CYGWIN__)
41 void
42 fb_log(const char *fmt, ...)
43 {
44  va_list ap;
45 
46  va_start(ap, fmt);
47  (void)vfprintf(stderr, fmt, ap);
48  va_end(ap);
49 }
50 #endif
51 
52 /*
53  * Local Variables:
54  * mode: C
55  * tab-width: 8
56  * indent-tabs-mode: t
57  * c-file-style: "stroustrup"
58  * End:
59  * ex: shiftwidth=4 tabstop=8
60  */
void fb_log(const char *fmt,...)
Definition: fb_log.c:42
Header file for the BRL-CAD common definitions.