Skip to content

Commit 5ebe1c4

Browse files
authored
Update setlocale-wsetlocale.md (#4479)
1 parent 8888feb commit 5ebe1c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/c-runtime-library/reference/setlocale-wsetlocale.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Locale specifier.
3838
## Return value
3939

4040
If a valid *`locale`* and *`category`* are given, the functions return a pointer to the string associated with the specified *`locale`* and *`category`*.
41+
If the *`locale`* argument is `NULL`, the functions return the current locale.
4142

4243
If the *`locale`* or *`category`* isn't valid, the invalid parameter handler is invoked, as described in [Parameter validation](../parameter-validation.md). If execution is allowed to continue, each function sets `errno` to `EINVAL`, and returns `NULL`.
4344

0 commit comments

Comments
 (0)