很神奇的一个函数请问swab函数(详细)用法
#include <stdlib.h>#include <stdio.h>
#include <string.h>
char source[15] = "rFna koBlrna d";
char target[15];
int main(void)
{
swab(source, target, strlen(source));//此是何意???
printf("This is target: %s\n", target);
return 0;
}
结果:
This is target: Frank Borland
Press any key to continue