📄 sw
字号:
@c ----------------------------------------------------------------------
@node swab, misc
@heading @code{swab}
@subheading Syntax
@example
#include <osfcn.h>
void swab(void *from, void *to, int bytes);
@end example
@subheading Description
This function swaps each pair of bytes in @var{from} as they're copied
to @var{to}.
@subheading Return Value
None.
@subheading Example
@example
swab(packet, header, sizeof(header);
@end example
@c ----------------------------------------------------------------------
@node swap, misc
@heading @code{swap}
@subheading Syntax
@example
#include <swap.h>
swap(a,b)
@end example
@subheading Description
This macro swaps the values of two variables of the same type,
regardless of what type they actually are.
@subheading Example
@example
double a, b;
if (a<b)
swap(a,b);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -