summaryrefslogtreecommitdiff
path: root/userland/libc/string/strcpy.c
blob: 9023fd1ff0b954579da8f589c3e274eab8fabd32 (plain)
1
2
3
4
5
6
7
#include <string.h>

char *strcpy(char *dest, const char *src) {
  for (; (*dest = *src); dest++, src++)
    ;
  return dest;
}