libft
Loading...
Searching...
No Matches
Functions
ft_array.h File Reference

Utility functions for handling pointer and integer arrays. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t ft_arraysize (void **array)
 Returns the number of elements in a NULL-terminated array.
 
char ** ft_copy_strarray (char **array)
 Creates a deep copy of a NULL-terminated string array.
 
void ft_free_array (void **array)
 Frees a NULL-terminated array.
 
void ft_free_array_size (void **array, size_t size)
 Frees an array of pointers with a known size.
 
bool ft_is_array_sorted (const int *array, size_t size)
 Checks if an array of integers is sorted in ascending order.
 
int ft_putintarray (int *array, int size)
 Prints an array of integers to standard output.
 

Detailed Description

Utility functions for handling pointer and integer arrays.

Author
Toonsa
Date
2025/04/04

This header is part of the libft project and provides a collection of helper functions to operate on generic arrays, particularly:

It includes tools for:

Note
All functions are written to be memory-safe and are suitable for use in projects that require manipulation of dynamically allocated array data.