mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
85c8af44de
Signed-off-by: DL6ER <dl6er@dl6er.de>
24 lines
698 B
C
24 lines
698 B
C
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2020 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* FTL Engine
|
|
* Pi-hole syscall implementation for asprintf
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
|
|
#include "../FTL.h"
|
|
//#include "syscalls.h" is implicitly done in FTL.h
|
|
#include "../log.h"
|
|
|
|
int FTLasprintf(const char *file, const char *func, const int line, char **buffer, const char *format, ...)
|
|
{
|
|
va_list args;
|
|
va_start(args, format);
|
|
const int length = FTLvasprintf(file, func, line, buffer, format, args);
|
|
va_end(args);
|
|
|
|
return length;
|
|
}
|