mplist_pop(3m17n)
π mplist_pop π
okay bestie, welcome to the m17n Library corner of the man pages, section 3m17n β and today's main character is mplist_pop. it's short, it's iconic, it pops things off the front of your property list. let's go π
β¨ NAME β¨
mplist_pop β that's it, that's the name. the description slot is lowkey empty in the original, so we're keeping it that way. no cap, some icons just let the work speak for itself π
πΈ SYNOPSIS πΈ
void* mplist_pop (MPlist * plist)
one function, one argument, returns a void*. simple. elegant. slay β¨
π¦ DESCRIPTION π¦
so here's the vibe: mplist_pop() removes a property at the beginning of a property list β the property list in question being plist. π«Ά
the way that works is genuinely so satisfying: once that first property is popped off, the second key and value of the plist become the first ones. it's giving front-of-the-line energy. the queue moves up, everybody shuffles forward, main character gets removed. periodt πβ¨
β RETURN VALUE β
- if the operation was successful, this function returns the value of the just popped property π
- otherwise, it returns
NULLπ
so yeah, check for that NULL, bestie. don't be out here dereferencing nothing π
π COPYRIGHT π
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>.
okay that's the whole page, you ate it, I'm obsessed π§
Version 1.8.4, dated Mon Sep 25 2023, and yeah β this was mplist_pop from section 3m17n. take care of your property lists, love u, bye ππΈπ¦
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms