mplist_push(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– mplist_push β€” the m17n Library's lil "new property, front of the line" icon ✨

okay bestie, gather round, because we are learning about mplist_push from the m17n Library manual (that's the manual name, mwah πŸ’…) and honestly? she's serving convenience.


🌸 NAME 🌸

mplist_push β€” the function that slides a brand-new property in at the very front of your property list πŸŽ€


✨ SYNOPSIS ✨

MPlist* mplist_push (MPlist * plist, MSymbol key, void * val)

πŸ¦‹ DESCRIPTION πŸ¦‹

So like. You know how sometimes you want to add something and you want it to be first? Main character energy. Front of the queue. That's her.

The mplist_push() function inserts, at the beginning of the property list plist, a property whose key is key and whose value is val. πŸ’–

🌟 Now listen carefully because this is the important part: if key is a managing key, then val must be a managed object. And when that's the case, the reference count of val gets incremented by one. No cap. That's just how it is. 🫢

πŸŽ€ RETURN VALUE πŸŽ€

  • If the operation was successful, this function returns plist. slay, she's back, holding your list βœ…
  • Otherwise, it returns NULL. sad girl hours 😭

Copyright (C) 2001 Information-technology Promotion Agency (IPA)

Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.


and that's the whole vibe check bestie πŸ’œ this was Version 1.8.4, dated Mon Sep 25 2023, and it lives under mplist_push(3m17n). go forth and push your properties, queen πŸ‘‘βœ¨πŸŒΈ

πŸ“¦ where this page comes from