]> git.ipfire.org Git - people/ms/strongswan.git/commit - src/libstrongswan/utils/utils.h
utils: Add wrappers for memcpy(3), memmove(3) and memset(3)
authorTobias Brunner <tobias@strongswan.org>
Tue, 24 Jun 2014 12:52:42 +0000 (14:52 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 24 Jun 2014 13:11:27 +0000 (15:11 +0200)
commit6d4654b9f91adf4effadebe0c7a4e5cfc91eb32b
treef9eb253e0fcf0ca980a522b4ec9bbd11300d2471
parentbb91109af82531b45e421568b5aeb8f9e4b6731e
utils: Add wrappers for memcpy(3), memmove(3) and memset(3)

These wrappers guarantee that calls to these functions are noops if the
number of bytes is 0, as calling them with NULL pointers is undefined
according to the C standard, even if the number of bytes is 0 (most
implementations probably ignore the pointers anyway in this case, but
lets make sure).
src/libstrongswan/utils/utils.h