mtext_ins(3m17n)
π mtext_ins β the m17n library, bestie edition π
okay so this one's from the m17n Library manual, section 3m17n, and it's genuinely one of my faves because it's just "put this text inside that text" and honestly? iconic. β¨
β¨ SYNOPSIS β¨
int mtext_ins (MText * mt1, int pos, MText * mt2)
π¦ DESCRIPTION π¦
so the mtext_ins() function inserts one M-text into another M-text. no cap. it takes M-text mt2 and drops it into M-text mt1, right at position pos. π
and the way that mt1 gets lengthened by the length of mt2? math. slay. π₯
on insertion, all the text properties of mt2 are inherited β so your formatting, your properties, all of it comes along for the ride. and the original mt2? not modified. not touched. not even a little. it stays exactly as it was, main character untouched energy. π
β RETURN VALUE β
- if the operation was successful, mtext_ins() returns
0. π«Ά - otherwise, it returns
-1and assigns an error code to the external variablemerror_code. π
π ERRORS π
MERROR_RANGEMERROR_MTEXT
πΈ SEE ALSO πΈ
mtext_del()mtext_insert()
π 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 bestie that's the whole page π this was Version 1.8.4, dated Mon Sep 25 2023, and it's literally giving mtext_ins(3m17n). go insert something into something else. iykyk π§β¨
π¦ 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