Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A trivial implementation wouldn't dereference dest or src in case the length is 0. That's how a student would write it with a for loop (byte-by-byte copy). A non-trivial implementation might do something with the pointers before entering the copy loop.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: