/************************************************************* * File: lib/memcpy.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */ /************************************************************* * memcpy(dst,src,nbytes) * A rather slow implementation of memcpy, this should * be rewritten in assembler. */ memcpy(dst,src,nbytes) unsigned char *dst,*src; int nbytes; { for (;nbytes>0;nbytes--) *dst++ = *src++; }