swab() in string.h

Alexandre Oliva aoliva@redhat.com
Wed Aug 30 10:56:00 GMT 2000


On Aug 30, 2000, Geoffrey Keating <geoffk@thief.cygnus.com> wrote:

> Having swab() in string.h [...]

> Oh, and the doc is certainly wrong.  No-one should be expecting it in
> string.h, even if it's there.  The Solaris, AIX, and HPUX manual pages
> all say <unistd.h>.

The man-pages in Red Hat Linux 6.2 say:

<quote>
SWAB(3)             Linux Programmer's Manual             SWAB(3)


NAME
       swab - swap adjacent bytes

SYNOPSIS
       #include <string.h>

       void swab(const void *from, void *to, size_t n);
</quote>

That was the reason why I added the prototype to string.h.  Sorry for
not having checked it as thoroughly as you did :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Newlib mailing list