'\" t .\" Title: nutscan_stringify_ip_ranges .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 08/13/2025 .\" Manual: NUT Manual .\" Source: Network UPS Tools 2.8.4 .\" Language: English .\" .TH "NUTSCAN_STRINGIFY_IP" "3" "08/13/2025" "Network UPS Tools 2\&.8\&.4" "NUT Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" nutscan_stringify_ip_ranges \- Collect contents of a `nutscan_ip_range_list_t` structure into a string buffer that can be further printed into logs\&. .SH "SYNOPSIS" .sp .nf #include const char * nutscan_stringify_ip_ranges(nutscan_ip_range_list_t *irl); .fi .SH "DESCRIPTION" .sp The \fBnutscan_stringify_ip_ranges()\fR function can walk a nutscan_ip_range_list_t structure to report its contents: count of list items, and a comma\-separated listing with each item as a single token (if start_ip==end_ip in that range) or a range as start_ip \&.\&. end_ip\&. .sp Returns a pointer to internal statically allocated buffer which would be overwritten by subsequent calls, but does not have to be freed by caller\&. .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBWarning\fR .ps -1 .br .sp Callers should use semaphores if accessing this function in multi\-thread context! .sp .5v .RE .SH "NOTES" .sp Technically, the function is currently defined in \fInutscan\-ip\&.h\fR file\&. .SH "SEE ALSO" .sp \fBnutscan_free_ip_ranges\fR(3), \fBnutscan_add_ip_range\fR(3), \fBnutscan_cidr_to_ip\fR(3), \fBnutscan_ip_ranges_iter_init\fR(3), \fBnutscan_ip_ranges_iter_inc\fR(3)