_swab
Visual Studio 2008
Swaps bytes.
void _swab( char *src, char *dest, int n );
Routine | Required header |
|---|---|
_swab | <stdlib.h> |
For additional compatibility information, see Compatibility in the Introduction.
// crt_swab.c
#include <stdlib.h>
#include <stdio.h>
char from[] = "BADCFEHGJILKNMPORQTSVUXWZY";
char to[] = "..........................";
int main()
{
printf( "Before: %s\n %s\n\n", from, to );
_swab( from, to, sizeof( from ) );
printf( "After: %s\n %s\n\n", from, to );
}
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.