函数名: swab
功 能: 交换字节
用 法: void swab (char *from, char *to, int nbytes);
程序例:
#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: %sn”, target);
return 0;
}
结果:
This is target:Frank Borland
swab函数
swab函数函数名 swab 功 能 交换字节 用 法 void swab char from char to int nbytes 程序例 include lt stdlib h gt include lt stdio h gt include lt string h gt
大家好,我是讯享网,很高兴认识大家。
Apple M1 开启HiDPI的新方法,无需虚拟屏,无需SwitchResX
上一篇
2025-02-25 15:55
数据结构学习笔记 6-1 手撕AVL树 与 LeetCode真题(Java)
下一篇
2025-03-21 23:40

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/122117.html