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

Kernighan & Pike:

    The ANSI C standard defines two functions: memcpy, which
    is fast but might overwrite memory if source and destination
    overlap; and memmove, which might be slower but will always
    be correct. The burden of choosing correctness over speed
    should not be placed upon the programmer; there should be
    only one function. Pretend there is, and always use memmove.
Shucks.

Also, static linking.



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

Search: