MEMCPY(3) BSD Programmer's Manual MEMCPY(3) NNAAMMEE mmeemmccppyy - copy byte string SSYYNNOOPPSSIISS ##iinncclluuddee <<ssttrriinngg..hh>> _v_o_i_d _* mmeemmccppyy(_v_o_i_d _*_d_s_t, _c_o_n_s_t _v_o_i_d _*_s_r_c, _s_i_z_e___t _l_e_n); DDEESSCCRRIIPPTTIIOONN The mmeemmccppyy() function copies _l_e_n bytes from string _s_r_c to string _d_s_t. RREETTUURRNN VVAALLUUEESS The mmeemmccppyy() function returns the original value of _d_s_t. SSEEEE AALLSSOO bcopy(3), memccpy(3), memmove(3), strcpy(3) SSTTAANNDDAARRDDSS The mmeemmccppyy() function conforms to ANSI C X3.159-1989 (``ANSI C ''). BBUUGGSS In this implementation mmeemmccppyy() is implemented using bcopy(3), and therefore the strings may overlap. On other systems, copying overlapping strings may produce surprises. A simpler solution is to not use mmeemmccppyy(). 4.4BSD June 4, 1993 1