Go to the source code of this file.
◆ _fclose_internal()
Definition at line 52 of file fclose.cpp.
53{
55
57
58
59
60
61 if (
stream.is_string_backed())
62 {
65 }
66
67 int return_value = 0;
68
71 {
73 }
75 {
77 }
79
80 return return_value;
81}
#define _UCRT_VALIDATE_RETURN(ptd, expr, errorcode, retexpr)
void __cdecl __acrt_stdio_free_stream(__crt_stdio_stream _Stream)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
static int __cdecl _fclose_nolock_internal(FILE *const public_stream, __crt_cached_ptd_host &ptd)
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
Referenced by fclose().
◆ _fclose_nolock()
Definition at line 46 of file fclose.cpp.
47{
48 __crt_cached_ptd_host
ptd;
50}
◆ _fclose_nolock_internal()
static int __cdecl _fclose_nolock_internal |
( |
FILE *const |
public_stream, |
|
|
__crt_cached_ptd_host & |
ptd |
|
) |
| |
|
static |
Definition at line 17 of file fclose.cpp.
18{
20
22
24
26 {
29
31 {
33 }
34 else if (
stream->_tmpfname !=
nullptr)
35 {
37 stream->_tmpfname =
nullptr;
38 }
39 }
40
42
44}
void __cdecl __acrt_stdio_free_buffer_nolock(FILE *const public_stream)
_Check_return_opt_ int __cdecl _close_internal(_In_ int _FileHandle, _Inout_ __crt_cached_ptd_host &_Ptd)
int __cdecl __acrt_stdio_flush_nolock(FILE *const public_stream, __crt_cached_ptd_host &ptd)
_Check_return_ _CRTIMP int __cdecl _fileno(_In_ FILE *_File)
Referenced by _fclose_internal(), and _fclose_nolock().
◆ fclose()
Definition at line 83 of file fclose.cpp.
84{
85 __crt_cached_ptd_host
ptd;
87}
static int __cdecl _fclose_internal(FILE *const public_stream, __crt_cached_ptd_host &ptd)