NUTSCAN_STRINGIFY_IP(3)
π NUTSCAN_STRINGIFY_IP_RANGES π
okay so bestie, we're in the NUT Manual, section 3, and this page is literally about nutscan_stringify_ip_ranges β yes the header says NUTSCAN_STRINGIFY_IP(3) but the actual star of the show has the longer name, we move π«Ά
πΈ NAME πΈ
nutscan_stringify_ip_ranges β she collects the contents of a nutscan_ip_range_list_t structure into a string buffer, so you can print that string straight into your logs. no cap, that's her whole job β¨
π SYNOPSIS π
#include <nut-scan.h>
const char * nutscan_stringify_ip_ranges(nutscan_ip_range_list_t *irl);
like, that's it. one include, one function call, one const char * coming back at you π
π¦ DESCRIPTION π¦
So nutscan_stringify_ip_ranges() literally walks a nutscan_ip_range_list_t structure and reports what's inside it, bestie. What does she report, exactly?
- the count of list items π
- a comma-separated listing where each item shows up as a single token β this happens if
start_ip==end_ipin that range - or, if it's actually a range, it shows up as
start_ip .. end_ipπ
And then she returns a pointer to an internal statically allocated buffer π which means β listen β that buffer gets overwritten by subsequent calls, so don't go holding onto it like it's your forever girl. The good news? The caller does not have to free it. no malloc drama, we love that for you π
β οΈ Warning β οΈ Callers should use semaphores if accessing this function in a multi-thread context! like, please, protect your threads, i am begging π
β NOTES β
Technically (iykyk), the function is currently defined in the nutscan-ip.h file. so that's where she lives rn π
π₯ SEE ALSO π₯
nutscan_free_ip_ranges(3)nutscan_add_ip_range(3)nutscan_cidr_to_ip(3)nutscan_ip_ranges_iter_init(3)nutscan_ip_ranges_iter_inc(3)
go read those too, they're all part of the same friend group π«Άβ¨
okay mwah, that's the page! this icon was brought to you by Network UPS Tools 2.8.5, dated 06/21/2026, and she's filed under NUTSCAN_STRINGIFY_IP(3) β slay, periodt, go stringify some IPs bestie ππ
π¦ where this page comes from
- arch rolling: nut 2.8.5-2 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms