blob: 35c68c5a365a8ea7e48b3154fb5f9ab671e41775 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
int
libcmap_fprint_range(FILE *fp, const struct libcmap_range *range, const char *endash)
{
if (range->first == range->last)
return fprintf(fp, SINGLETON_RANGE_FMT, SINGLETON_RANGE_ARGS(range));
else
return fprintf(fp, RANGE_FMT, RANGE_ARGS(range, endash));
}
|