miniRT
By Marcelo Magalhães and Ygor G. Sena, 2023.
helpers.h
Go to the documentation of this file.
1 /* ************************************************************************** */
2 /* */
3 /* ::: :::::::: */
4 /* helpers.h :+: :+: :+: */
5 /* +:+ +:+ +:+ */
6 /* By: yde-goes <yde-goes@student.42sp.org.br> +#+ +:+ +#+ */
7 /* +#+#+#+#+#+ +#+ */
8 /* Created: 2023/03/31 14:48:10 by mdias-ma #+# #+# */
9 /* Updated: 2023/06/16 13:39:56 by yde-goes ### ########.fr */
10 /* */
11 /* ************************************************************************** */
12 
14 #ifndef HELPERS_H
15 # define HELPERS_H
16 
17 # include <stdio.h>
18 # include <stdlib.h>
19 # include <math.h>
20 
28 /* ************************************************************************** */
29 /* SWAP.C */
30 /* ************************************************************************** */
31 
39 void swap(double *nbr1, double *nbr2);
40 
41 /* ************************************************************************** */
42 /* FT_ATOF.C */
43 /* ************************************************************************** */
44 
53 double ft_atof(const char *nptr);
54 
55 #endif
void swap(double *nbr1, double *nbr2)
This function swaps numbers' position if the first parameter is bigger than the second parameter.
Definition: swap.c:15
double ft_atof(const char *nptr)
Convert a string to a double.
Definition: ft_atof.c:18