mconv_stream_converter(3m17n)
β¨ mconv_stream_converter β¨
okay bestie, welcome to the mconv_stream_converter page from the m17n Library man pages π this one's short and sweet and honestly kind of iconic.
πΈ NAME πΈ
mconv_stream_converter β bestie this section is literally empty in the original, so we're just gonna say hi to the function name and move on π«Ά (the actual tea is all in DESCRIPTION, iykyk)
π SYNOPSIS π
MConverter* mconv_stream_converter (MSymbol name, FILE * fp)
π DESCRIPTION π
So the whole vibe here is: you're making a code converter that's tied to a stream. π₯
The mconv_stream_converter() function creates a pointer to a code converter for the coding system called name. That converter is bound to the stream fp. And like β every decoding and encoding after that happens to/from that stream. it's giving committed relationship, no cap. π
Now here's the cute part: name can be Mnil. In that case, a coding system associated with the current locale (LC_CTYPE) gets used instead. so if you don't feel like choosing, the locale chooses for you. main character behaviour honestly π
π RETURN VALUE π
- If the operation was successful,
mconv_stream_converter()returns the created code converter. slay. β¨ - Otherwise it returns
NULLand assigns an error code to the external variablemerror_code. not the vibe, but okay, at least it tells you why π
π ERRORS π
MERROR_SYMBOLMERROR_CODING
fr fr, checkmerror_codewhen you getNULLback β that's your only clue and you're gonna want it.
π¦ SEE ALSO π¦
mconv_buffer_converter()β the buffer-bound sibling, go say hi π«Ά
π 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, we ate ππ
and just so you know exactly which version of this lore you're reading: this was Version 1.8.4, dated Mon Sep 25 2023, and the page is mconv_stream_converter(3m17n). periodt. ππ§ββοΈ
π¦ 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