Files
FTL/src/syscalls/sprintf.c
T
2020-12-09 21:23:47 +01:00

24 lines
707 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 sprintf
*
* 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 FTLsprintf(const char *file, const char *func, const int line, char *__restrict__ buffer, const char *format, ...)
{
va_list args;
va_start(args, format);
const int length = FTLvsprintf(file, func, line, buffer, format, args);
va_end(args);
return length;
}