Simple functionality additions to memccp