mtext_ref_char(3m17n)

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

✨ 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 πŸ™ˆ your pos was out of pocket.

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