mtext_set_char(3m17n)
π mtext_set_char β from the m17n Library (yes, 3m17n, bestie) π
okay so picture this: you've got an M-text and you just want to yeet one lil character into it. that's literally the whole job of mtext_set_char. she's small, she's focused, she's the main character of exactly one function call. π
β¨ NAME β¨
mtext_set_char β that's it, that's the name, the description was a no-show (relatable honestly, we've all been there π«Ά)
πΈ SYNOPSIS πΈ
int mtext_set_char (MText * mt, int pos, int c)
π¦ DESCRIPTION π¦
okay so the tea is: mtext_set_char() stores a character into an M-text. fr fr, that's the vibe.
She sets character c β and listen, this c has no text properties, so don't come for her expecting extra β¨ β at position pos inside the M-text mt.
that's it. that's the whole function. lowkey iconic for how unbothered she is π
β RETURN VALUE β
- if everything went slay,
mtext_set_char()returns0π - otherwise it returns
-1and drops an error code into the external variablemerror_codeπ
π ERRORS π
MERROR_RANGEβ yeah, this one. if it shows up, something's out of range. not the vibe. π©
π 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, no cap π§ version 1.8.4, dated Mon Sep 25 2023, and she's still serving mtext_set_char(3m17n) energy to this very day πβ¨
π¦ 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