出典:Wikipedia
出典:『Wikipedia』 (2011/05/17 18:40 UTC 版)
swab is a function in the C programming language that copies one area of memory to another, but swaps adjacent bytes whilst it does so. As far as traceable, “swab” is a contraction of “swap byte”. It is not a standard ISO C library function, but appears in the Single Unix Specification (SUS) and POSIX.1-2001. These require that swab be declared in unistd.h. On other platforms, it may be declared in stdlib.h, if at all.