SAFE_ADD_ID_TO_LIST(3)
π safe_add_id_to_list(3) / SAFE_ADD_ID_TO_LIST(3) β the safe_id_range_list bestie page π
okay so bestie, welcome to the SAFE_ADD_ID_TO_LIST(3) manual page. This is the one about adding an id or a whole range of ids to the list. Itβs giving βtiny utility, big main character energy.β β¨
πΈ NAME πΈ
safe_add_id_to_list, safe_add_id_range_to_list β add an id or range of ids to the list. Periodt. π
π¦ SYNOPSIS π¦
#include "safe_id_range_list.h"
struct safe_id_range_list;
typedef struct safe_id_range_list safe_id_range_list;
int safe_add_id_to_list(safe_id_range_list list, id_t id);
int safe_add_id_range_to_list(safe_id_range_list list, id_t min_id, id_t max_id);
π DESCRIPTION π
safe_add_id_to_list adds a single id to list. One id. One little icon. Slay. π
safe_add_id_range_to_list adds a range of ids to list. The min_id must be less than or equal to max_id, no cap. π«Ά
π§ Parameters π§
listβ thesafe_id_range_listto add values to. The value must be non-NULL. Like, literally must not beNULL, bestie. π«idβ the id to add. Thatβs it. Thatβs the whole job. β¨min_id,max_idβ the range of ids to add. Themin_idmust be less than or equal to themax_id. π₯
π RETURN VALUE π
returns 0 on success and -1 on failure with errno set appropriately. Thatβs the vibe check: 0 = we ate, -1 = check errno. π
π ERRORS π
EINVALβ thelistparameter wasNULL, or, insafe_add_id_range_to_list,min_idwas greater thanmax_id. π©ENOMEMβ failed to allocate memory. The memory allocation said βnot today,β and honestly? relatable. π
π AUTHOR π
James A. Kupsch. Icon behavior. π
β SEE ALSO β
π§ββοΈπ cute little sign-off: this pageβs footer is serving 2011-07-26 and SAFE_ADD_ID_TO_LIST(3) energy β source/version and date noted, bestie, periodt. π
π
π¦ where this page comes from
- nixos 26.05: safefile 1.0.5
- nixpkgs unstable: safefile 1.0.5
- Copyright 2007-2008 James A. Kupsch
- Copyright 2007-2008, 2011 James A. Kupsch
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms