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

# mchar\_define\_property(3m17n)

## NAME

mchar\_define\_property -

## SYNOPSIS

MSymbol **mchar\_define\_property** (const char \* *name*, MSymbol *type*)

## DESCRIPTION

Define a character property. The **mchar\_define\_property()** function searches the m17n database for a data whose tags are \<**Mchar\_table**, **type**, **sym**\>. Here, **sym** is a symbol whose name is **name**. **type** must be **Mstring**, **Mtext**, **Msymbol**, **Minteger**, or **Mplist**.

## RETURN VALUE

If the operation was successful, **mchar\_define\_property()** returns **sym**. Otherwise it returns **Mnil**. \

## ERRORS

`MERROR_DB`

## SEE ALSO

**mchar\_get\_prop()**, **mchar\_put\_prop()**\

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