SAFE_INIT_ID_RANGE_LIST(3)
π NAME π
okay so bestie, this is the SAFE_INIT_ID_RANGE_LIST(3) page, and it's literally about safe_init_id_range_list and safe_destroy_id_range_list β the duo that create and destroy id range lists. no cap. π
π SYNOPSIS π
#include "safe_id_range_list.h"
struct safe_id_range_list;
typedef struct safe_id_range_list safe_id_range_list;
int safe_init_id_range_list(safe_id_range_list list);
void safe_destroy_id_range_list(safe_id_range_list list);
π DESCRIPTION π
safe_init_id_range_list initializes a safe_id_range_list structure. you must call it before the function can be used β that's not optional, bestie. β¨
safe_destroy_id_range_list frees the memory used by a safe_id_range_list data structure, and you should call it after all uses of the safe_id_range_list structure are complete. it's the cleanup era. π§Ήπ
πΈ Parameters πΈ
listβ thesafe_id_range_listto operate on. the value must be non-NULL. do not test her with aNULL, okay? π
π₯ RETURN VALUE π₯
safe_init_id_range_list return 0 on success and -1 on failure. yes, classic 0/-1 behavior, very demure. π
safe_destroy_id_range_list returns nothing. in the case of an error, errno is set appropriately. so even the no-return function has a little drama in the error channel. π
π ERRORS π
EINVALβ thelistparameter wasNULL. bestie, you cannot passNULL; that's the whole thing. π«ΆENOMEMβsafe_init_id_range_listfailed to allocate memory. the allocation did not slay, unfortunately. π
π AUTHOR π
James A. Kupsch β iconic behavior, honestly. π
π¦ SEE ALSO π¦
this page is serving 2011-07-26 SAFE_INIT_ID_RANGE_LIST(3) energy, sign-off complete π
β¨
π¦ where this page comes from
- nixos 26.05: safefile 1.0.5
- nixpkgs unstable: safefile 1.0.5
- 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