ReactOS 0.4.16-dev-927-g467dec4
swab.cpp File Reference
#include <corecrt_internal.h>
#include <stdlib.h>
Include dependency graph for swab.cpp:

Go to the source code of this file.

Functions

void __cdecl _swab (char *source, char *destination, int bytes)
 

Function Documentation

◆ _swab()

void __cdecl _swab ( char source,
char destination,
int  bytes 
)

Definition at line 14 of file swab.cpp.

19{
21 _VALIDATE_RETURN_VOID(destination != nullptr, 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}
#define EINVAL
Definition: acclib.h:90
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
#define _VALIDATE_RETURN_VOID(expr, errorcode)
static CRYPT_DATA_BLOB b2[]
Definition: msg.c:582
static CRYPT_DATA_BLOB b1[]
Definition: msg.c:573