mtext_set_char(3m17n)

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

πŸ’– 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() returns 0 πŸ‘‘
  • otherwise it returns -1 and drops an error code into the external variable merror_code 😭

πŸ’€ ERRORS πŸ’€

  • MERROR_RANGE β€” yeah, this one. if it shows up, something's out of range. not the vibe. 🚩

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