Files
FTL/src/syscalls/asprintf.c
T
2020-12-10 22:05:14 +01:00

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;
}