blob: 6117e7ca5e3fc0e973eedc2f051bc53871fb6584 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <kernel/lib/string.h>
void strcpy(char *dest, const char *orig)
{
size_t s_orig = strlen(orig);
for (size_t i = 0; i < s_orig; i++)
dest[i] = orig[i];
dest[s_orig] = 0;
}
|