Copyright ownership transfer
[lttng-ust.git] / src / common / safe-snprintf.h
CommitLineData
c0c0989a
MJ
1/*
2 * SPDX-License-Identifier: LGPL-2.1-or-later
a09dac63 3 *
c0c0989a 4 * Copyright (C) 2009 Pierre-Marc Fournier
a09dac63
PMF
5 */
6
9d315d6d
MJ
7#ifndef _UST_COMMON_SAFE_SNPRINTF_H
8#define _UST_COMMON_SAFE_SNPRINTF_H
a1eb70f9
PMF
9
10#include <stdarg.h>
b4051ad8 11#include <stddef.h>
a1eb70f9 12
1d18d519
MJ
13int ust_safe_vsnprintf(char *str, size_t n, const char *fmt, va_list ap)
14 __attribute__((visibility("hidden")));
ddabe860 15
622671fb 16int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...)
1d18d519
MJ
17 __attribute__((visibility("hidden")))
18 __attribute__((format(printf, 3, 4)));
a1eb70f9 19
9d315d6d 20#endif /* _UST_COMMON_SAFE_SNPRINTF_H */
This page took 0.034392 seconds and 4 git commands to generate.