|
libft
|
2D integer array utilities. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int ** | ft_create_matrix (size_t rows, size_t cols) |
| Allocates a 2D array of integers initialized to 0. | |
| void | ft_free_matrix (int **matrix, size_t rows) |
| Frees a 2D array of integers. | |
| int ** | ft_matrix_copy (int **matrix, size_t rows, size_t cols) |
| Creates a deep copy of a 2D array of integers. | |
| int | ft_print_matrix (int **matrix, size_t rows, size_t cols) |
| Prints a 2D array of integers to the standard output. | |
| int ** | ft_strarr_to_matrix (char **array) |
| Converts a NULL-terminated array of strings to a 2D integer array. | |
2D integer array utilities.
This header provides functions for handling dynamically allocated 2D integer arrays. Operations include creation, duplication, conversion from string arrays, printing, and memory cleanup.
These utilities are especially useful in grid-based systems such as map parsing, cellular automata, or algorithmic simulations.