I was making my own strcpy function using linked list but couldn't get how to do. Without using linked list it could be like this
char* cp2014strcpy(char * dest_ptr, const char * src_ptr) {
char* strresult = dest_ptr;
if((NULL != dest_ptr) && (NULL != src_ptr)) {
while (NULL != src_ptr) {
*dest_ptr++ = *src_ptr++;
}
*dest_ptr = NULL;
}
return strresult;
}
but I couldn't get how to make strcpy using linked list.