memcpy added which is copy from linux