From 3c801c0e2eeb3fbf0b7029296143de869c893bfb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Dec 2025 13:27:17 +0100 Subject: Add range print functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcmap_sprint_range.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libcmap_sprint_range.c (limited to 'libcmap_sprint_range.c') diff --git a/libcmap_sprint_range.c b/libcmap_sprint_range.c new file mode 100644 index 0000000..800fee5 --- /dev/null +++ b/libcmap_sprint_range.c @@ -0,0 +1,10 @@ +/* See LICENSE file for copyright and license details. */ +#include "libcmap.h" +#include + + +int +libcmap_sprint_range(char *buf, const struct libcmap_range *range, const char *endash) +{ + return libcmap_snprint_range(buf, buf ? SIZE_MAX : (size_t)0, range, endash); +} -- cgit v1.3.1