FireBirdLib - Topfield TMS PVR TAP Programming Library
LogEntryGenericPrintf.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <string.h>
3
#include <stdarg.h>
//va_list
4
#include "
libFireBird.h
"
5
6
int
vsnprintf
(
char
*str,
size_t
size,
const
char
*format, va_list ap);
//define missing prototype
7
8
void
LogEntryGenericPrintf
(
char
*ProgramName,
bool
Console,
char
*format, ...)
9
{
10
TRACEENTER
();
11
12
char
Text[512];
13
14
if
(!format)
15
{
16
TRACEEXIT
();
17
return
;
18
}
19
20
va_list args;
21
va_start(args, format);
22
vsnprintf
(Text,
sizeof
(Text), format, args);
23
va_end(args);
24
LogEntryGeneric
(ProgramName, Console, Text);
25
26
TRACEEXIT
();
27
}
LogEntryGenericPrintf
void LogEntryGenericPrintf(char *ProgramName, bool Console, char *format,...)
Definition:
LogEntryGenericPrintf.c:8
vsnprintf
int vsnprintf(char *str, size_t size, const char *format, va_list ap)
LogEntryGeneric
void LogEntryGeneric(char *ProgramName, bool Console, char *Text)
Definition:
LogEntryGeneric.c:6
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
debug
LogEntryGenericPrintf.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3