ReactOS
0.4.16-dev-814-g656a5dc
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
unlink.cpp
Go to the documentation of this file.
1
//
2
// unlink.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// The remove() and unlink() functions, which remove (delete) files.
7
//
8
#include <
corecrt_internal.h
>
9
#include <stdio.h>
10
#include <
corecrt_internal_win32_buffer.h
>
11
12
// Deletes the specified file. Returns zero if successful; returns -1 and sets
13
// errno and _doserrno on failure.
14
extern
"C"
int
__cdecl
remove
(
char
const
*
const
path
)
15
{
16
if
(
path
==
nullptr
)
17
return
_wremove
(
nullptr
);
18
19
__crt_internal_win32_buffer<wchar_t>
wide_path;
20
21
errno_t
const
cvt
=
__acrt_mbs_to_wcs_cp
(
path
, wide_path,
__acrt_get_utf8_acp_compatibility_codepage
());
22
23
if
(
cvt
!= 0) {
24
return
-1;
25
}
26
27
return
_wremove
(wide_path.
data
());
28
}
29
30
31
32
extern
"C"
int
__cdecl
_unlink
(
char
const
*
const
path
)
33
{
34
return
remove
(
path
);
35
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
__crt_win32_buffer
Definition:
corecrt_internal_win32_buffer.h:152
__crt_win32_buffer::data
char_type * data()
Definition:
corecrt_internal_win32_buffer.h:246
corecrt_internal.h
corecrt_internal_win32_buffer.h
__acrt_mbs_to_wcs_cp
errno_t __acrt_mbs_to_wcs_cp(char const *const null_terminated_input_string, __crt_win32_buffer< wchar_t, ResizePolicy > &win32_buffer, unsigned int const code_page)
Definition:
corecrt_internal_win32_buffer.h:619
__acrt_get_utf8_acp_compatibility_codepage
unsigned int __acrt_get_utf8_acp_compatibility_codepage()
Definition:
corecrt_internal_win32_buffer.h:422
cvt
static char * cvt(double arg, int ndigits, int *decpt, int *sign, char *buf, int eflag)
Definition:
fcvtbuf.c:45
_wremove
_Check_return_ _CRTIMP int __cdecl _wremove(_In_z_ const wchar_t *_Filename)
remove
int remove
Definition:
msacm.c:1366
path
Definition:
wbemprox_private.h:188
errno_t
int errno_t
Definition:
corecrt.h:615
_unlink
int __cdecl _unlink(char const *const path)
Definition:
unlink.cpp:32
sdk
lib
ucrt
filesystem
unlink.cpp
Generated on Thu Mar 13 2025 06:14:44 for ReactOS by
1.9.6