MDGSF Software Engineer

[C/C++] strcpy 库函数实现

2016-03-11
 

char *
strcpy(char *to, char *from)
{
    assert((to != NULL) && (from != NULL));
    char *save = to;
    for (; (*to = *from) != '\0'; ++from, ++to)
    {
    }
    return save;
}

weixingongzhonghao

Similar Posts

Comments