---
name: "mchar_decode"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mchar_decode"
---

# mchar\_decode(3m17n)

## NAME

mchar\_decode -

## SYNOPSIS

int **mchar\_decode** (MSymbol *charset\_name*, unsigned *code*)

## DESCRIPTION

Decode a code-point. The **mchar\_decode()** function decodes code-point **code** in the charset represented by the symbol **charset\_name** to get a character code.

## RETURN VALUE

If decoding was successful, **mchar\_decode()** returns the decoded character code. Otherwise it returns -1. \

## SEE ALSO

**mchar\_encode()**\

## 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\>.
