Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 26th, 2012  |  syntax: C  |  size: 0.16 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void strheadcat(char * dest, const char * src)
  2. {
  3.     size_t srcLen=strlen(src);
  4.     memmove(dest+src, dest, strlen(dest));
  5.     memcpy(dest, src, srcLen);
  6. }