mchartable(3m17n)

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

✨ NAME ✨

mchartable β€” bestie it's literally the function that makes you a brand new chartable, that's it, that's the whole name πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

MCharTable* mchartable (MSymbol key, void * default_value)

πŸ’– DESCRIPTION πŸ’–

okay so. mchartable() is here to create a new chartable. That's the whole assignment, and she ate. 🫢

You hand her a symbol β€” that's your key β€” and a default_value, and boom, a fresh new chartable object exists in the world with that key and that default value. main character energy fr.

And now the part you actually need to know, no cap: if key is a managing key, the elements of the table (including the default value) are managed objects or NULL. That's the rule. That's the vibe check. Don't forget it. πŸ¦‹


⭐ RETURN VALUE ⭐

So what do you get back? Two possibilities, bestie:

  • If the operation was successful, mchartable() returns a pointer to the created chartable. Slay. πŸ‘‘
  • Otherwise it returns NULL, and β€” not me having to tell you this β€” it assigns an error code to the external variable merror_code. 😭

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, we're done here πŸ’œ this was Version 1.8.4, dated Mon Sep 25 2023, and it's part of the m17n Library docs β€” mchartable(3m17n) 4ever, iykyk πŸŽ€βœ¨πŸŒΈ

πŸ“¦ where this page comes from