Skip to content

Commit 10dcf0e

Browse files
authored
Update open-osfhandle.md
Modify wording around using _close on file descriptors owned by FILE*s
1 parent ac70c7e commit 10dcf0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c-runtime-library/reference/open-osfhandle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Opens the file in text (translated) mode.
6262
**\_O\_WTEXT**
6363
Opens the file in Unicode (translated UTF-16) mode.
6464

65-
To close a file opened with `_open_osfhandle`, call [\_close](../../c-runtime-library/reference/close.md). The underlying OS file handle is also closed by a call to `_close`, so it is not necessary to call the Win32 function `CloseHandle` on the original handle. If the file descriptor is owned by a `FILE *` stream, then calling [fclose](../../c-runtime-library/reference/fclose-fcloseall.md) on that `FILE *` stream also closes both the file descriptor and the underlying handle. In this case, `_close` does not need to be called.
65+
To close a file opened with `_open_osfhandle`, call [\_close](../../c-runtime-library/reference/close.md). The underlying OS file handle is also closed by a call to `_close`, so it is not necessary to call the Win32 function `CloseHandle` on the original handle. If the file descriptor is owned by a `FILE *` stream, then calling [fclose](../../c-runtime-library/reference/fclose-fcloseall.md) on that `FILE *` stream also closes both the file descriptor and the underlying handle. In this case, do not call `_close` on the file descriptor.
6666

6767
## Requirements
6868

0 commit comments

Comments
 (0)