mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-01 06:23:35 +01:00
33 lines
678 B
C
33 lines
678 B
C
|
#ifndef _STRING_H
|
||
|
#define _STRING_H 1
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
//---
|
||
|
// Memory manipulation.
|
||
|
//---
|
||
|
|
||
|
/*
|
||
|
memcpy()
|
||
|
Copies a memory area. The two areas must not overlap (if they do, use
|
||
|
memmove()). A smart copy is performed when possible. To enhance
|
||
|
performance, make sure than destination and source are both 4-aligned.
|
||
|
|
||
|
@arg destination
|
||
|
@arg source
|
||
|
@arg byte_number
|
||
|
*/
|
||
|
void *memcpy(void *destination, const void *source, size_t byte_number);
|
||
|
|
||
|
/*
|
||
|
memset()
|
||
|
Sets the contents of a memory area. A smart copy is performed.
|
||
|
|
||
|
@arg area
|
||
|
@arg byte Byte to write in the area.
|
||
|
@arg byte_number
|
||
|
*/
|
||
|
void *memset(void *destination, int byte, size_t byte_number);
|
||
|
|
||
|
#endif // _STRING_H
|