mtext_ins_char(3m17n)
β¨ mtext_ins_char β¨
okay bestie, welcome to the m17n library docs π this one is a function page, and honestly? it's giving "tiny function, big feelings". let's get into it.
πΈ NAME πΈ
mtext_ins_char β the character-inserting girlie of the m17n family π (yes, the one-line description is literally empty in the original, and we respect the mysterious main character energy π)
π¦ SYNOPSIS π¦
int mtext_ins_char (MText * mt, int pos, int c, int n)
π DESCRIPTION π
so here's the vibe: this function inserts a character into an M-text. no cap.
The mtext_ins_char() function inserts n copies of character c into M-text mt at position pos. As a result, mt is lengthen by n.
like, literally n copies. not one. not "a couple". n. and yeah the original says "lengthen" and we are not touching that, it's part of the lore π
β RETURN VALUE β
If the operation was successful, mtext_ins() returns 0. Otherwise, it returns -1 and assigns an error code to the external variable merror_code.
π¨ wait bestie β yes, the original really does saymtext_ins()here and notmtext_ins_char(). we are preserving that exactly, fr fr. do not @ me, I don't make the rules π
π ERRORS π
MERROR_RANGE
that's the whole list. one error. she's focused β¨
π«Ά SEE ALSO π«Ά
mtext_insmtext_del()
go read those next, they're the sibling besties of this function π
π 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 page!! π this was Version 1.8.4, dated Mon Sep 25 2023, and it lives in the m17n manual (section 3, 3m17n) π slay, go insert some characters, ily π¦
π¦ 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