diff options
Diffstat (limited to '')
-rw-r--r-- | include/lib.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/lib.h b/include/lib.h index f60cf5e..7c74fa2 100644 --- a/include/lib.h +++ b/include/lib.h @@ -10,12 +10,18 @@ int memcmp(const void *restrict s1, const void *restrict s2, unsigned long n); /** - * The memcpy() function copies n bytes from memory area src to memory area dest. - * The memory areas must not overlap. + * the memcpy() function copies n bytes from memory area src to memory area dest. + * the memory areas must not overlap. */ void *memcpy(void *restrict dest, const void *restrict src, unsigned long n); /** + * the memcpy() function copies n bytes from memory area src to memory area dest. + * the memory areas must not overlap. + */ +volatile void *memcpyv(volatile void *dest, const volatile void *src, unsigned long n); + +/** * The memmove() function copies n bytes from memory area src to memory area dest. The memory areas * may overlap: copying takes place as though the bytes in src are first copied into a temporary array * that does not overlap src or dest, and the bytes are then copied from the temporary array to dest. @@ -29,6 +35,12 @@ void *memmove(void *dest, const void *src, unsigned long n); void *memset(void *restrict dest, int c, unsigned long n); /** + * The memset() function fills the first n bytes of the memory area pointed to by s with the constant + * byte c. + */ +volatile void *memsetv(volatile void *dest, int c, unsigned long n); + +/** * The strcmp() function compares the two strings s1 and s2. The locale is not taken into account * (for a locale-aware comparison, see strcoll(3)). The comparison is done using unsigned characters. */ |