Swab (programming)

Swab (programming)

swab is a function in the C programming language that swaps the contents of two areas of bytes in the memory. As far as traceable, "swab" is a contraction of "swap byte". It is not a standard ISO C library function, so its use is not portable.

The swab() function is useful for preparing blocks of data for further processing, in situations where the data blocks have been sent through a network arranged in network byte order, and must be rearranged into native byte order (or vice versa). This deals specifically with data blocks that are composed of 2-byte (16-bit) words that must be rearranged so that they have the proper endianness appropriate for the local system.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Swab — *In medicine, a cotton swab is a small piece of material, such as gauze or cotton, which is used to clean wounds, apply medications, or retrieve samples of body fluids such as blood or mucus. Swabs may be attached to stiff wires or sticks to aid… …   Wikipedia

  • PDP-11 architecture — The PDP 11 architecture is an instruction set architecture (ISA) developed by Digital Equipment Corporation (DEC). It is implemented by central processing units (CPUs) and microprocessors used in minicomputers of the same name. Additional… …   Wikipedia

  • How Clean Is Your House? — Aggie MacKenzie Kim Woodburn, stars of How Clean is Your House? Format Entertainment/Lifestyle Starring …   Wikipedia

  • 826 Valencia — is the name and address of a nonprofit writing workshop and tutoring center in San Francisco, United States, whose aim is to help students ages 8 18 with their writing skills, in the realm of creative writing, expository writing, or English as a… …   Wikipedia

  • Volume Dois — Infobox Album | Name = Volume Dois Type = Album Artist = Titãs Released = 1998 Recorded = 1998 Genre = Rock Length = Label = WEA Producer = Liminha Reviews = * Allmusic Rating|4|5 [http://allmusic.com/cg/amg.dll?p=amg sql=10:anfyxqtjldte link]… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”