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

# mconv\_stream\_converter(3m17n)

## NAME

mconv\_stream\_converter -

## SYNOPSIS

**MConverter**\* **mconv\_stream\_converter** (MSymbol *name*, FILE \* *fp*)

## DESCRIPTION

Create a code converter bound to a stream. The **mconv\_stream\_converter()** function creates a pointer to a code converter for coding system **name**. The code converter is bound to stream **fp**. Subsequent decodings and encodings are done to/from this stream.

**name** can be **Mnil**. In this case, a coding system associated with the current locale (LC\_CTYPE) is used.

## RETURN VALUE

If the operation was successful, **mconv\_stream\_converter()** returns the created code converter. Otherwise it returns `NULL` and assigns an error code to the external variable **merror\_code**. \

## ERRORS

`MERROR_SYMBOL`, `MERROR_CODING`

## SEE ALSO

**mconv\_buffer\_converter()**\

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