Files
FTL/src/syscalls/snprintf.c
T
2020-12-09 21:12:29 +01:00

24 lines
739 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 snprintf
*
* 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 FTLsnprintf(const char *file, const char *func, const int line, char *__restrict__ buffer, const size_t maxlen, const char *format, ...)
{
va_list args;
va_start(args, format);
const int length = FTLvsnprintf(file, func, line, buffer, maxlen, format, args);
va_end(args);
return length;
}