Skip to content

Commit 7824880

Browse files
Update wctomb-s-wctomb-s-l.md
Adding another possible error return. I'm not sure of the document syntax though.
1 parent 6231f09 commit 7824880

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/c-runtime-library/reference/wctomb-s-wctomb-s-l.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ Error Conditions
6060
| `NULL` | >0 | `EINVAL` | not modified |
6161
| any | >`INT_MAX` | `EINVAL` | not modified |
6262
| any | too small | `EINVAL` | not modified |
63-
63+
6464
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`.
6565

66+
Return value `EILSEQ` indicates an encoding error has occurred.
67+
6668
## Remarks
6769

6870
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.

0 commit comments

Comments
 (0)