|
Libft
Custom implementation of core libc functions with additional utility helpers.
|
Low-level memory operations. More...
Functions | |
| void | ft_bzero (void *s, size_t n) |
| Sets n bytes of memory to zero. | |
| void * | ft_memchr (const void *s, int c, size_t n) |
| Locates the first occurrence of a byte in memory. | |
| int | ft_memcmp (const void *s1, const void *s2, size_t n) |
| Compares two memory areas byte by byte. | |
| void * | ft_memcpy (void *dst, const void *src, size_t n) |
| Copies n bytes from src to dst. | |
| void * | ft_memmove (void *dst, const void *src, size_t len) |
| Copies n bytes from src to dst, handling overlapping memory. | |
| void * | ft_memset (void *b, int c, size_t len) |
| Fills memory with a constant byte. | |
Low-level memory operations.
Functions to manipulate raw memory blocks.
| void ft_bzero | ( | void * | s, |
| size_t | n ) |
Sets n bytes of memory to zero.
| s | Pointer to memory area. |
| n | Number of bytes to set. |

| void * ft_memchr | ( | const void * | s, |
| int | c, | ||
| size_t | n ) |
Locates the first occurrence of a byte in memory.
| s | Memory area to search (borrowed). |
| c | Byte to search for (converted to unsigned char). |
| n | Number of bytes to search. |
| int ft_memcmp | ( | const void * | s1, |
| const void * | s2, | ||
| size_t | n ) |
Compares two memory areas byte by byte.
| s1 | First memory area. |
| s2 | Second memory area. |
| n | Number of bytes to compare. |
| void * ft_memcpy | ( | void * | dst, |
| const void * | src, | ||
| size_t | n ) |
Copies n bytes from src to dst.
| dst | Destination memory area (borrowed). |
| src | Source memory area (borrowed). |
| n | Number of bytes to copy. |

| void * ft_memmove | ( | void * | dst, |
| const void * | src, | ||
| size_t | len ) |
Copies n bytes from src to dst, handling overlapping memory.
| dst | Destination memory area. |
| src | Source memory area. |
| len | Number of bytes to copy. |

| void * ft_memset | ( | void * | b, |
| int | c, | ||
| size_t | len ) |
Fills memory with a constant byte.
| b | Memory area to fill. |
| c | Byte value to set (converted to unsigned char). |
| len | Number of bytes to set. |
