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

# minput\_open\_im(3m17n)

## NAME

minput\_open\_im -

## SYNOPSIS

**MInputMethod**\* **minput\_open\_im** (MSymbol *language*, MSymbol *name*, void \* *arg*)

## DESCRIPTION

Open an input method. The **minput\_open\_im()** function opens an input method whose language and name match **language** and **name**, and returns a pointer to the input method object newly allocated.

This function at first decides a driver for the input method as described below.

If **language** is not **Mnil**, the driver pointed by the variable **minput\_driver** is used.

If **language** is **Mnil** and **name** has the property **Minput\_driver**, the driver pointed to by the property value is used to open the input method. If **name** has no such a property, `NULL` is returned.

Then, the member **MInputDriver::open\_im()** of the driver is called. \

**arg** is set in the member `arg` of the structure **MInputMethod** so that the driver can refer to it. \

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