aboutsummaryrefslogtreecommitdiff
path: root/xsnprintf.h
blob: c745ef3e5a454a3433302df074df6eb30f6c558d (plain)
1
2
3
4
5
6
7
8
#pragma once

#include <stdarg.h>
#include <stddef.h>
#include "macros.h"

size_t xsnprintf(char *buf, size_t len, const char *fmt, ...) PRINTF(3) NONNULL_ARGS;
size_t xvsnprintf(char *buf, size_t len, const char *fmt, va_list ap) VPRINTF(3) NONNULL_ARGS;