词条 | swab |
释义 | 函数名: swab 功 能: 交换相临的两个字节 用 法: void swab (char *from, char *to, int nbytes); 程序例: #include <stdlib.h> #include <stdio.h> #include <string.h> char source[15] = "Frank Borland"; char target[15]; int main(void) { swab(source, target, strlen(source)); printf("This is target: %s\", target); return 0; } 运行结果: This is target:rFna koBlrnad |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。