mtext_ref_char(3m17n)
β¨ mtext_ref_char β¨
okay so bestie, welcome to the m17n Library manual page for mtext_ref_char π this one's from the 3m17n section, and she's short, sweet, and honestly iconic. let's get into it π«Ά
πΈ NAME πΈ
mtext_ref_char β the little function that peeks at a character in an M-text π
π¦ SYNOPSIS π¦
int mtext_ref_char (MText * mt, int pos)
like. that's it. that's the whole vibe. two args, one int back π
π DESCRIPTION π
so what she does is: she returns the character sitting at the position you asked for inside an M-text, no cap.
mtext_ref_char() gives you back the character at pos in the M-text mt π
but listen β if something goes wrong, if an error gets detected, she doesn't just ghost you. she returns -1 and drops an error code into the external variable merror_code. so you will know. she's not about the mystery π
π ERRORS π
when things go sideways, merror_code can be set to:
MERROR_RANGEβ the range said no π yourposwas out of pocket.
π 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, you understood it, I'm so proud π₯Ήβ¨ this was Version 1.8.4, dated Mon Sep 25 2023, brought to you by the mtext_ref_char(3m17n) girlies fr fr π go read a character, bestie ππ¦π
π¦ 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