summaryrefslogtreecommitdiff
path: root/src/include/stdarg.h
blob: f55fcc3019b6619ce58c0f2120cde0d7eb166619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-only */

/**
 * Note: This file is only for POSIX compatibility.
 */

#ifndef STDARG_H
#define STDARG_H

#include <stddef.h>

#define va_start(v, l)		__builtin_va_start(v, l)
#define va_end(v)		__builtin_va_end(v)
#define va_arg(v, l)		__builtin_va_arg(v, l)
typedef __builtin_va_list	va_list;

int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);

#endif /* STDARG_H */