summaryrefslogtreecommitdiff
path: root/lib/libc/string/swab.c
AgeCommit message (Expand)Author
2022-12-28swab(3): Rewrite this to be understandable.riastradh
2022-12-28PR lib/57141 - never decrement len without actually performing a STEP.kre
2011-01-04Special-case the (unlikely in practice) call with len = 2 - previouslymartin
2010-04-18The number of byte pairs to swap is len/2, not len/2+1.apb
2010-04-18Bitwise operations on signed types are well-defined if the valuesapb
2010-04-18simplifychristos
2010-04-17fix lintchristos
2010-04-17Change and document for POSIX compliance.christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2001-05-22fix incorrect loop sentinel caused by previous de-linting.christos
2001-01-26ANSIfy and de-lint. Reviewed by christos.wiz
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
1998-02-03remove obsolete register declarationsperry
1998-01-30update to lite-2perry
1998-01-12Per XPG4, move the prototype of swab() from <string.h> to <unistd.h>.kleink
1997-07-13Fix RCSID'schristos
1993-08-26Declare rcsid strings so they are stored in text segment.jtc
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd