UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
src
compat
vsnprintf.c
Go to the documentation of this file.
1
/*
2
* FILE: vsnprintf.c
3
* AUTHOR: Colin Perkins
4
*
5
* Copyright (c) 1997-2001 University College London
6
* All rights reserved.
7
*
8
* Redistribution and use in source and binary forms, with or without
9
* modification, is permitted provided that the following conditions
10
* are met:
11
* 1. Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in the
15
* documentation and/or other materials provided with the distribution.
16
* 3. All advertising materials mentioning features or use of this software
17
* must display the following acknowledgement:
18
* This product includes software developed by the Computer Science
19
* Department at University College London
20
* 4. Neither the name of the University nor of the Department may be used
21
* to endorse or promote products derived from this software without
22
* specific prior written permission.
23
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
24
* ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
27
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33
* SUCH DAMAGE.
34
*
35
* $Revision: 1.1 $
36
* $Date: 2007/11/08 09:48:59 $
37
*
38
*/
39
40
#include "config.h"
41
#include "
config_unix.h
"
42
#include "
debug.h
"
43
#include "
vsnprintf.h
"
44
45
#ifndef HAVE_VSNPRINTF
46
int
vsnprintf
(
char
*s,
size_t
buf_size,
const
char
*format, va_list ap)
47
{
48
/* Quick hack replacement for vsnprintf... note that this */
49
/* doesn't check for buffer overflows, and so is open to */
50
/* many really nasty attacks! */
51
UNUSED
(buf_size);
52
return
vsprintf(s, format, ap);
53
}
54
#endif
UNUSED
#define UNUSED(x)
Definition
aja_common.cpp:63
config_unix.h
debug.h
vsnprintf
int vsnprintf(char *s, size_t buf_size, const char *format, va_list ap)
Definition
vsnprintf.c:46
vsnprintf.h
Generated on Wed Sep 25 2024 14:27:16 for UltraGrid by
1.12.0