summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/swab.c
Commit message (Collapse)AuthorAgeFilesLines
* According to the information on:trhodes2004-12-101-2/+2
| | | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/functions/swab.html the prototype for swab() should be in <unistd.h> and not in <string.h>. Move it, and update to match SUS. Leave the prototype in string.h for now, for backwards compat. PR: 74751 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Discussed with: das
* - Convert the function definition to declare its argumentsrobert2002-08-301-8/+4
| | | | | | | | | | | | | | | | | | | | | | | in the ANSI-C format. - Change the code a bit to hopefully save some cycles. I.e. (simplified) change a = b + 1; while (--b & 0x7) /* ... */ to a = b; for (; b & 0x7; b--) /* ... */ and while (--a >= 0) /* ... */ to for (; a > 0; a--) /* ... */ - Equip two function arguments of swab() with the 'restrict' type qualifier in form of the '__restrict' macro. This is specified by POSIX.1-2001.
* Remove 'register' keyword.obrien2002-03-211-3/+3
|
* rcsid[]->__FBSDIDobrien2001-11-071-4/+2
|
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.obrien2001-05-241-0/+4
| | | | Do the same for the non-wcs*/wmem* files while I'm here.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+65
OpenPOWER on IntegriCloud