Skip to content

Update wctomb-s-wctomb-s-l.md #4463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/c-runtime-library/reference/wctomb-s-wctomb-s-l.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The address of a multibyte character.
Size of the buffer *`mbchar`*.

*`wchar`*\
A wide character.
The wide character to convert.

*`locale`*\
The locale to use.
Expand All @@ -60,9 +60,11 @@ Error Conditions
| `NULL` | >0 | `EINVAL` | not modified |
| any | >`INT_MAX` | `EINVAL` | not modified |
| any | too small | `EINVAL` | not modified |

If any of the above error conditions occurs, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, `wctomb` returns `EINVAL` and sets `errno` to `EINVAL`.

The return value [`EILSEQ`](../errno-constants.md) indicates that the value passed via the parameter `wchar` is not a valid wide character.

## Remarks

The **`wctomb_s`** function converts its *`wchar`* argument to the corresponding multibyte character and stores the result at *`mbchar`*. You can call the function from any point in any program.
Expand Down