sw

来自「Algorithms for Image Processing and Comp」· 代码 · 共 51 行

TXT
51
字号
@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 + =
减小字号Ctrl + -
显示快捷键?