Xinu7/man/man3/swab.doc




SWAB(3)             Xinu Programmer's Manual              SWAB(3)



NAME
     swab - swap bytes

SYNOPSIS
     swab(from, to, nbytes)
     char *from, *to;

DESCRIPTION
     _S_w_a_b copies _n_b_y_t_e_s bytes pointed to by _f_r_o_m to the position
     pointed to by _t_o, exchanging adjacent even and odd bytes.
     It is useful for carrying binary data between LSI 11's and
     other machines.  _N_b_y_t_e_s should be even.

SEE ALSO
     hs2net(3) hl2net(3), net2hl(3), net2hs(3)








































Version 6b               Printed 1/12/87                        1