mplist_get(3m17n)
π mplist_get π
okay so bestie, welcome to the m17n Library corner of the manual, section 3m17n, and today's main character is mplist_get π
β¨ NAME β¨
mplist_get β that's it, that's the name, the description slot is literally empty, she said "my work speaks for itself" π
πΈ SYNOPSIS πΈ
void* mplist_get (MPlist * plist, MSymbol key)
π¦ DESCRIPTION π¦
ok so picture this: you've got a property list and you want the value that's attached to a certain key. that's literally the whole job. the mplist_get() function goes digging through the property list plist, starting all the way from the beginning, looking for a property whose key is key. π
and the moment she finds it? she hands you back its value, typed as (void *). slay. if she does not find it, you get NULL back. no drama, no cap.
π¨ but here's the tea, and it's important: when you getNULLback, there are two possible realities happening, andmplist_get()will not tell you which one you're in: 1. no property with that key was found at all (the case we just talked about) 2. a property was found β and its value just happens to beNULLtoo π so yeah, those two situations are indistinguishable from here. if you absolutely need to tell them apart, do not pass go, do not collect $200, go use themplist_find_by_key()function instead. she's the one who can vibe-check them separately. β¨
π SEE ALSO π
mplist_find_by_key()β the icon you call whenNULLis being ambiguous π«Ά
π 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>.
and that's the whole page bestie!! this was Version 1.8.4, dated Mon Sep 25 2023, and she ate fr fr πβ¨ no crumbs left. mwah π
π¦ 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