NUTSCAN_INIT_IP_RANG(3)

🌸 NAME 🌸

nutscan_init_ip_ranges β€” initialize contents of a nutscan_ip_range_list_t structure (and optionally create one in the first place). This is the <cyan>NUTSCAN_INIT_IP_RANG(3)</cyan> page from the NUT manual, hiiii bestie 🫢✨

✨ SYNOPSIS ✨

#include <nut-scan.h>

nutscan_ip_range_list_t * nutscan_init_ip_ranges(nutscan_ip_range_list_t *irl);

πŸŽ€ DESCRIPTION πŸŽ€

okay so nutscan_init_ip_ranges() can prepare a nutscan_ip_range_list_t structure by zeroing out its fields. If the argument is NULL, the structure is dynamically allocated. Either way, a pointer to it is returned. slay πŸ’…

If you pass in a structure, it is not assumed to have any valid contents to free, because it may have garbage from the stack after allocation. no cap 😭

The caller must free the contents of the structure after completing its use by calling nutscan_free_ip_ranges (after which the structure can be re-used), and explicitly free() the structure object itself if it was allocated dynamically (e.g. by originally calling nutscan_init_ip_ranges(NULL)). literally do not skip this part, bestie πŸš¨πŸ’–

πŸ“ NOTES πŸ“

Technically, the function is currently defined in nutscan-ip.h file. iykyk 🧚✨

πŸ‘‘ SEE ALSO πŸ‘‘


okay bye bestie πŸ’‹ β€” this was Network UPS Tools 2.8.5, dated 06/21/2026, mwah 😘🌸

πŸ“¦ 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