mirror of
https://github.com/reactos/reactos.git
synced 2025-06-26 02:29:43 +00:00
Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
This commit is contained in:
parent
a28e798006
commit
c424146e2c
20602 changed files with 0 additions and 1140137 deletions
33
lib/sdk/crt/stdlib/swab.c
Normal file
33
lib/sdk/crt/stdlib/swab.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/crt/??????
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*
|
||||
* copy this swab from wine cvs 2006-05-24
|
||||
*/
|
||||
void _swab (char * src, char * dst, int sizeToCopy)
|
||||
|
||||
{
|
||||
if (sizeToCopy > 1)
|
||||
{
|
||||
sizeToCopy = (unsigned)sizeToCopy >> 1;
|
||||
|
||||
while (sizeToCopy--) {
|
||||
char s0 = src[0];
|
||||
char s1 = src[1];
|
||||
*dst++ = s1;
|
||||
*dst++ = s0;
|
||||
src = src + 2;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue