ReactOS  0.4.14-dev-1256-g2125fec
swab.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS system libraries
4  * FILE: lib/sdk/crt/stdlib/swab.c
5  * PURPOSE: Unknown
6  * PROGRAMER: Unknown
7  * UPDATE HISTORY:
8  * 25/11/05: Added license header
9  */
10 
11 #include <precomp.h>
12 
13 /*
14  * @implemented
15  *
16  * copy this swab from wine cvs 2006-05-24
17  */
18 void _swab (char * src, char * dst, int sizeToCopy)
19 
20 {
21  if (sizeToCopy > 1)
22  {
23  sizeToCopy = (unsigned)sizeToCopy >> 1;
24 
25  while (sizeToCopy--) {
26  char s0 = src[0];
27  char s1 = src[1];
28  *dst++ = s1;
29  *dst++ = s0;
30  src = src + 2;
31  }
32  }
33 }
void _swab(char *src, char *dst, int sizeToCopy)
Definition: swab.c:18
struct S1 s1
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
static unsigned(__cdecl *hash_bstr)(bstr_t s)