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

Utility functions for general-purpose operations. More...

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

Go to the source code of this file.

Functions

int ft_rand (int min, int max)
 Returns a random integer in the range [min, max] using xorshift32.
 
void ft_swap (void *a, void *b, size_t size)
 Swaps the contents of two memory blocks.
 

Detailed Description

Utility functions for general-purpose operations.

Author
Toonsa
Date
2025/04/05

This header declares generic helper functions used throughout various parts of a project, such as memory-safe value swapping and bounded random number generation.