blob: d5c9ec2780a5a3f783d0cd76bec136db4cbd4fcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdio.h>
#include <unistd.h>
int main() {
char src[] = "abcdefg";
char dst[10] = {0};
swab(src, dst, 5);
printf("before: %s\n", src);
printf("after: %s\n", dst);
return 0;
}
|