mbsinit - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# mbsinit

From cppreference.com
< c‎ | string‎ | multibyte

Defined in header `<wchar.h>` |  |
int mbsinit( const mbstate_t* ps); |  |

If `ps` is not a null pointer, the `mbsinit` function determines whether the pointed-to mbstate_t object describes the initial conversion state.

### [edit] Notes

Although a zero-initialized mbstate_t always represents the initial conversion state, there may be other values of mbstate_t that also represent the initial conversion state.

### [edit] Parameters

ps | - | pointer to the mbstate_t object to examine

### [edit] Return value

​0​ if `ps` is not a null pointer and does not reporesent the initial conversion state, nonzero value otherwise.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

mbstate_t | conversion state information necessary to iterate multibyte character strings (class) [edit]
C++ documentation for mbsinit

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/string/multibyte/mbsinit&oldid=56797"
Category:

- Todo no example