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

# mchar\_put\_prop(3m17n)

## NAME

mchar\_put\_prop -

## SYNOPSIS

int **mchar\_put\_prop** (int *c*, MSymbol *key*, void \* *val*)

## DESCRIPTION

Set the value of a character property. The **mchar\_put\_prop()** function searches character **c** for the character property whose key is **key** and assigns **val** to the value of the found property.

## RETURN VALUE

If the operation was successful, **mchar\_put\_prop()** returns 0. Otherwise, it returns -1. \

## ERRORS

`MERROR_SYMBOL`, `MERROR_DB`

## SEE ALSO

**mchar\_define\_property()**, **mchar\_get\_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\>.
