Skip to content
Merged
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion docs/c-runtime-library/reference/wctomb-s-wctomb-s-l.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Return value `EILSEQ` indicates an encoding error has occurred.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this addition. Could we word it slightly differently and provide a link? For example: "An EILSEQ return value indicates that the parameter wchar is not a valid wide character.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link may be hard to read since github interpreted the markdown. It was [EILSEQ](../errno-constants.md)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with backticks around EILSEQ


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