mtext_chr(3m17n)
β¨ mtext_chr β the m17n Library's little "where u at bestie" function β¨
okay so like. you've got an M-text and you've got a character and you're sitting there like "where is she. where is my girl" β that's literally what this is for π
welcome to mtext_chr, part of the m17n Library (3m17n). she's small, she's simple, she slays.
πΈ NAME πΈ
mtext_chr β no cap, that's the whole name, she's just built like that π
π SYNOPSIS π
int mtext_chr (MText * mt, int c)
two args, one int back, zero drama β¨
π¦ DESCRIPTION π¦
so basically: this function returns the position of the first time a character shows up in an M-text. that's it, that's the vibe π
mtext_chr() searches the M-text mt for character c. the search starts from the beginning of mt and goes toward the end. front to back, no backtracking, no side quests, just main character energy walking the timeline in order π
like. if the character appears multiple times, you're getting the first one, periodt. she's not out here collecting all of them for you β she's giving you the earliest one and dipping. iykyk π
π RETURN VALUE π
- if
cis found,mtext_chr()returns its position β¨ - otherwise it returns
-1π (yeah, she said "not here," and she meant it)
π ERRORS π
MERROR_RANGEβ when things go out of range, this is the error you get π
π SEE ALSO π
mtext_rchr()β the backwards-searching sister, she goes from the end π₯mtext_character()β for when you wanna go the other direction entirely π§
π 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 π«Ά that was Version 1.8.4, dated Mon Sep 25 2023, brought to you by mtext_chr(3m17n) β stay hydrated, read your manpages, and may every search return something other than -1 πΈβ¨
π¦ 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