|
libft
|
Low-level memory manipulation utilities. More...
#include "libft.h"
Include dependency graph for ft_memory.c:Functions | |
| void | ft_bzero (void *s, size_t n) |
| Sets a block of memory to zero. | |
| void * | ft_calloc (size_t nmemb, size_t size) |
| Allocates and zeroes memory for an array. | |
| void * | ft_memchr (const void *s, int c, size_t n) |
| Scans memory for a specific byte. | |
| int | ft_memcmp (const void *s1, const void *s2, size_t n) |
| Compares two memory blocks. | |
| void * | ft_memcpy (void *dest, const void *src, size_t n) |
| Copies memory from source to destination. | |
| void * | ft_memmove (void *dest, const void *src, size_t n) |
| Copies memory safely, handling overlapping regions. | |
| void * | ft_memset (void *s, int c, size_t n) |
| Fills memory with a constant byte. | |
| void * | ft_realloc (void *ptr, size_t old_size, size_t new_size) |
| Resizes a memory block. | |
Low-level memory manipulation utilities.
This file implements utility functions for memory allocation, initialization, comparison, and manipulation. It extends or replaces behaviors from the C standard library with consistent, safer versions.
The functions are part of the memory_utils module and include zeroing memory, copying and moving memory safely, and reallocating blocks.