ReactOS
0.4.16-dev-927-g467dec4
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
swab.cpp
Go to the documentation of this file.
1
//
2
// swab.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Defines the _swab function, which copies a source buffer into a destination
7
// buffer, swapping the odd and even bytes of each word as it does so.
8
//
9
#include <
corecrt_internal.h
>
10
#include <stdlib.h>
11
12
13
14
extern
"C"
void
__cdecl
_swab
(
15
char
*
source
,
16
char
* destination,
17
int
bytes
18
)
19
{
20
_VALIDATE_RETURN_VOID
(
source
!=
nullptr
,
EINVAL
);
21
_VALIDATE_RETURN_VOID
(destination !=
nullptr
,
EINVAL
);
22
_VALIDATE_RETURN_VOID
(
bytes
>= 0,
EINVAL
);
23
24
while
(
bytes
> 1)
25
{
26
char
const
b1
= *
source
++;
27
char
const
b2
= *
source
++;
28
29
*destination++ =
b2
;
30
*destination++ =
b1
;
31
32
bytes
-= 2;
33
}
34
}
EINVAL
#define EINVAL
Definition:
acclib.h:90
__cdecl
#define __cdecl
Definition:
accygwin.h:79
bytes
static unsigned char bytes[4]
Definition:
adnsresfilter.c:74
corecrt_internal.h
_VALIDATE_RETURN_VOID
#define _VALIDATE_RETURN_VOID(expr, errorcode)
Definition:
corecrt_internal_strtox.h:50
b2
static CRYPT_DATA_BLOB b2[]
Definition:
msg.c:582
b1
static CRYPT_DATA_BLOB b1[]
Definition:
msg.c:573
source
Definition:
pdh_main.c:174
_swab
void __cdecl _swab(char *source, char *destination, int bytes)
Definition:
swab.cpp:14
sdk
lib
ucrt
convert
swab.cpp
Generated on Sun Mar 30 2025 06:14:48 for ReactOS by
1.9.6