4.3BSD-UWisc/man/cat3/bstring.3

Compare this file to the similar file:
Show the results in this format:




BSTRING(3)          UNIX Programmer's Manual           BSTRING(3)



NAME
     bcopy, bcmp, bzero, ffs - bit and byte string operations

SYNOPSIS
     bcopy(src, dst, length)
     char *src, *dst;
     int length;

     bcmp(b1, b2, length)
     char *b1, *b2;
     int length;

     bzero(b, length)
     char *b;
     int length;

     ffs(i)
     int i;

DESCRIPTION
     The functions _b_c_o_p_y, _b_c_m_p, and _b_z_e_r_o operate on variable
     length strings of bytes.  They do not check for null bytes
     as the routines in _s_t_r_i_n_g(3) do.

     _B_c_o_p_y copies _l_e_n_g_t_h bytes from string _s_r_c to the string _d_s_t.

     _B_c_m_p compares byte string _b_1 against byte string _b_2, return-
     ing zero if they are identical, non-zero otherwise.  Both
     strings are assumed to be _l_e_n_g_t_h bytes long.

     _B_z_e_r_o places _l_e_n_g_t_h 0 bytes in the string _b_1.

     _F_f_s find the first bit set in the argument passed it and
     returns the index of that bit.  Bits are numbered starting
     at 1.  A return value of 0 indicates the value passed is
     zero.

BUGS
     The _b_c_o_p_y routine take parameters backwards from _s_t_r_c_p_y.
















Printed 12/27/86          May 15, 1985                          1