Skip to content

Commit e63b573

Browse files
author
msebolt
committed
adjustments
1 parent 3507695 commit e63b573

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/c-runtime-library/reference/wcstombs-s-wcstombs-s-l.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ The destination string is always null-terminated (even in the case of an error).
9898

9999
If *`count`* is the special value [`_TRUNCATE`](../../c-runtime-library/truncate.md), then **`wcstombs_s`** converts as much of the string as will fit into the destination buffer, while still leaving room for a null terminator. If the string is truncated, the return value is **`STRUNCATE`**, and the conversion is considered successful.
100100

101-
If **`wcstombs_s`** successfully converts the source string, it puts the size in bytes of the converted string, including the null terminator, into **pReturnValue* (provided *`pReturnValue`* is not **`NULL`**). This occurs even if the *`mbstr`* argument is **`NULL`** and provides a way to determine the required buffer size. Note that if *`mbstr`* is **`NULL`**, *count* is ignored.
101+
If **`wcstombs_s`** successfully converts the source string, it puts the size in bytes of the converted string, including the null terminator, into *`*pReturnValue`* (provided *`pReturnValue`* is not **`NULL`**). This occurs even if the *`mbstr`* argument is **`NULL`** and provides a way to determine the required buffer size. Note that if *`mbstr`* is **`NULL`**, *`count`* is ignored.
102102

103-
If **`wcstombs_s`** encounters a wide character it cannot convert to a multibyte character, it puts 0 in **pReturnValue*, sets the destination buffer to an empty string, sets **`errno`** to **`EILSEQ`**, and returns **`EILSEQ`**.
103+
If **`wcstombs_s`** encounters a wide character it cannot convert to a multibyte character, it puts 0 in *`*ReturnValue`*, sets the destination buffer to an empty string, sets **`errno`** to **`EILSEQ`**, and returns **`EILSEQ`**.
104104

105105
If the sequences pointed to by *`wcstr`* and *`mbstr`* overlap, the behavior of **`wcstombs_s`** is undefined.
106106

0 commit comments

Comments
 (0)