mchartable_set_range(3m17n)
π NAME π
mchartable_set_range β bestie, this is the one that paints a whole range of characters with one value, in one go β¨
π SYNOPSIS π
int mchartable_set_range (MCharTable * table, int from, int to, void * val)
πΈ DESCRIPTION πΈ
Okay so picture this: you've got a chartable, right? And you want a bunch of characters in it to all hold the same value. Not one at a time like some kind of villain β a whole stretch of them, together, at once. That's literally this function. Main character energy fr fr π
The mchartable_set_range() function assigns the value val to the characters from from to to (both inclusive, bestie β don't forget the endpoints, they're invited to the party too π«Ά) in the chartable table.
So yeah, it's giving "fill in this range, slay, done". No cap.
β¨ RETURN VALUE β¨
- If the operation was successful,
mchartable_set_range()returns0. Iconic. We love a zero. π - Otherwise it returns
-1and assigns an error code to the external variablemerror_code. So check that variable, okay? It's the one holding the receipts. π§Ύ - Special lil case: if
fromis greater thanto,mchartable_set_range()returns immediately without an error. Like, it just leaves. No drama, no error code, nothing. Not me thinking that's lowkey the funniest possible behaviour π
π ERRORS π
MERROR_CHAR
π SEE ALSO π
mchartable_set()
π 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 whole page, bestie, you ate that πβ¨ This was Version 1.8.4, dated Mon Sep 25 2023, and it lives in the m17n library. Go forth and set some ranges, you gorgeous nerd π¦π
π¦ 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