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

char *strcpy(char *d, const char *s) {
  char *s1 = d;
  for (; (*d++ = *s++);)
    ;
  return s1;
}