mconv_getc(3m17n)
π NAME π
okay bestie, say hi to mconv_getc β she's a lil function from the m17n Library (that's the manual page mconv_getc(3m17n), iykyk) and she's here to grab you exactly one character through a code converter. yes. one. she's not greedy. π
β¨ SYNOPSIS β¨
int mconv_getc (MConverter * converter)
π¦ DESCRIPTION π¦
so here's the vibe: mconv_getc() reads one character from either the buffer area or the stream that's currently bound to the code converter converter. which one? whichever one is bound to her rn. she doesn't ask questions, she just reads. π«Ά
the decoder of converter is the one doing the decoding of the byte sequence β that's literally her job, let her cook.
and the internal status of converter? updated appropriately. as it should be. she keeps receipts. π
πΈ RETURN VALUE πΈ
- if everything went slay and the operation was successful,
mconv_getc()returns the character read in. cute. - if the input source hits EOF, she returns
EOFwithout touching the external variablemerror_code. no drama, no changes, she just leaves it alone. - if an error gets detected, she returns
EOFand assigns an error code tomerror_code. π so check that variable, bestie.
π ERRORS π
MERROR_CODING
π SEE ALSO π
the friend group, fr fr:
mconv_ungetc()mconv_putc()mconv_gets()
π 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, periodt. π this was Version 1.8.4, dated Mon Sep 25 2023, and it lives at mconv_getc(3m17n) in the m17n manual. mwah, go read a character bestie π§β¨π
π¦ 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