Skip to content

Instantly share code, notes, and snippets.

@dragen1860
Last active June 11, 2018 01:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragen1860/b2446c937e7a2a5a8c8c9eb9b62e3580 to your computer and use it in GitHub Desktop.
Save dragen1860/b2446c937e7a2a5a8c8c9eb9b62e3580 to your computer and use it in GitHub Desktop.
copy_.cpp
bool copy_(void* src, void* dest)
{
void* psrc = src;
void* pdest = dest;
while(*psrc!=0)
{
*pdest = *psrc;
psrc++;
pdest++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment