blob: 66028de3bed91e8335af87bda5effb298f7d8a5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
* Copyright 2016 Garrett D'Amore <garrett@damore.org>
*
* This software is supplied under the terms of the MIT License, a
* copy of which should be located in the distribution where this
* file was obtained (LICENSE.txt). A copy of the license may also be
* found online at https://opensource.org/licenses/MIT.
*/
#ifndef CORE_SNPRINTF_H
#define CORE_SNPRINTF_H
#include <stddef.h>
#include <stdarg.h>
/*
* We have our own snprintf, because some platforms lack this, while
* others need special handling. Ours just calls the vsnprintf version
* from the platform.
*/
extern void nni_snprintf(char *, size_t, const char *, ...);
extern void nni_vsnprintf(char *, size_t, const char *, va_list);
#endif /* CORE_SNPRINTF_H */
|