blob: eb0b02452d0b3572abe8b8af1f2e8c46f3c23eb5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
void my_strcpy(char* dest, const char* source)
{
size_t index = NULL;
while (source[index] != '\0')
{
dest[index] = source[index];
index++;
}
dest[index] = '\0';
}
|