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

# mtext\_text(3m17n)

## NAME

mtext\_text -

## SYNOPSIS

int **mtext\_text** (**MText** \* *mt1*, int *pos*, **MText** \* *mt2*)

## DESCRIPTION

Locate an M-text in another. The **mtext\_text()** function finds the first occurrence of M-text **mt2** in M-text **mt1** after the position **pos** while ignoring difference of the text properties.

## RETURN VALUE

If **mt2** is found in **mt1**, **mtext\_text()** returns the position of it first occurrence. Otherwise it returns -1. If **mt2** is empty, it returns 0. \

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