RossComputerGuy/stardustos

View on GitHub
libraries/libc/src/string/strcpy.c

Summary

Maintainability
Test Coverage
/**
    * StardustOS libc - (C) 2019 Tristan Ross
    */
#include <string.h>

char* strcpy(char* dst, const char* src) {
    char* s = dst;
    while (*dst++ = *src++);
    return s;
}