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

# minput\_lookup(3m17n)

## NAME

minput\_lookup -

## SYNOPSIS

int **minput\_lookup** (**MInputContext** \* *ic*, MSymbol *key*, void \* *arg*, **MText** \* *mt*)

## DESCRIPTION

Look up a text produced in the input context. The **minput\_lookup()** function looks up a text in the input context **ic**. **key** must be identical to the one that was used in the previous call of **minput\_filter()**.

If a text was produced by the input method, it is concatenated to M-text **mt**.

This function calls **MInputDriver::lookup** .

## RETURN VALUE

If **key** was correctly handled by the input method, this function returns 0. Otherwise, it returns -1, even though some text might be produced in **mt**. \

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