globus_list.h(3)
β¨ globus_list.h β¨
okay so bestie, welcome to globus_list.h β the Linked List header from globus_common π this is a <pink>Library Functions Manual</pink> situation, and we're about to get so cozy with linked lists.
πΈ NAME πΈ
globus_list.h β Linked List. yes, that's it, that's the whole name. short, sweet, iconic π
π SYNOPSIS π
π¦ Data Structures π¦
struct globus_listβ List data type. the moment. the blueprint. the main character π
π Typedefs π
typedef struct globus_list globus_list_tβ List data type. it's giving "we made a cute little alias so you don't have to typestructevery single time" π«Άtypedef int(* globus_list_pred_t) (void *datum, void *arg)β List search predicate. a function pointer that takes avoid *datumand avoid *argand hands you back anint. iykyk πtypedef int(* globus_list_relation_t) (void *low_datum, void *high_datum, void *relation_arg)β Relation predicate. same energy, but it takesvoid *low_datum,void *high_datum, andvoid *relation_arg, and returns anint. lowkey the backbone of all the sorting stuff below π₯
β Functions β
int globus_list_empty (globus_list_t *head)β List empty predicate. is the list empty or not, bestie? yes/no, that's the whole vibe β¨void * globus_list_first (globus_list_t *head)β Retrieve head datum. gimme the first thing in the list πglobus_list_t * globus_list_rest (globus_list_t *head)β Get the remainder of the list. everything after the first thing. the sequel π¦int globus_list_size (globus_list_t *head)β Get the number of elements in a list. how many besties are in here πvoid * globus_list_replace_first (globus_list_t *head, void *datum)β Replace first datum. swap out the head element fordatum, no cap πglobus_list_t * globus_list_search (globus_list_t *head, void *datum)β Search a list for a datum. hunting for that one specificdatumπglobus_list_t * globus_list_search_pred (globus_list_t *head, globus_list_pred_t predicate, void *pred_args)β Search a list with a predicate. same hunt, but you bring your ownpredicateandpred_argsπglobus_list_t * globus_list_min (globus_list_t *head, globus_list_relation_t relation, void *relation_args)β Find the minimum value of a list. the smallest one, using yourrelationandrelation_argsπΈglobus_list_t * globus_list_sort (globus_list_t *head, globus_list_relation_t relation, void *relation_args)β Sort a list. putting it in order, withrelationandrelation_argsdoing the deciding βint globus_list_insert (globus_list_t *volatile *headp, void *datum)β Insert an item in a list. note thevolatileon thatheadp, bestie β they're not playing πglobus_list_t * globus_list_cons (void *datum, globus_list_t *list)β List constructor. classic cons, taking adatumand alistπ§globus_list_t * globus_list_copy (globus_list_t *head)β Copy constructor. duplicate the whole thing πvoid * globus_list_remove (globus_list_t *volatile *headp, globus_list_t *entry)β Remove a datum from a list. again with thevolatileonheadpβ the thread-safety girlies are thriving here π₯void globus_list_free (globus_list_t *head)β Free a list. release it back into the wild ποΈ
π Detailed Description π
Linked List. that's the whole thing. it's a linked list. it ate. periodt π β¨
π Author π
Generated automatically by Doxygen for globus_common from the source code. not a human, just a doc generator doing its little thing π€π
okay and for the sign-off: this whole thing is globus_common, Version 18.15, and it's the globus_list.h(3) page π thanks for reading bestie, go build something slay with your linked lists ππ¦β¨
π¦ where this page comes from
- epel 10: globus-common-doc 18.15-1.el10_2 Β· Apache-2.0
- fedora 43: globus-common-doc 18.15-1.fc43 Β· Apache-2.0
- fedora 44: globus-common-doc 18.15-2.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-common-doc 18.15-1 Β· Apache-2.0
- ubuntu stonking: libglobus-common-doc 18.15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms