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

# mtext\_spn(3m17n)

## NAME

mtext\_spn -

## SYNOPSIS

int **mtext\_spn** (**MText** \* *mt*, **MText** \* *accept*)

## DESCRIPTION

Search an M-text for a set of characters. The **mtext\_spn()** function returns the length of the initial segment of M-text **mt1** that consists entirely of characters in M-text **mt2**. \

## SEE ALSO

**mtext\_cspn()**\

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