Adding the start of math
This commit is contained in:
parent
93f734f5e9
commit
3ac78b4c7f
13 changed files with 628 additions and 0 deletions
34
math/includes/ft_math.h
Normal file
34
math/includes/ft_math.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_math.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/04 12:16:08 by rparodi #+# #+# */
|
||||
/* Updated: 2024/05/28 15:43:40 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef FT_MATH_H
|
||||
# define FT_MATH_H
|
||||
|
||||
# include <unistd.h>
|
||||
# include <stdlib.h>
|
||||
# include <stdio.h>
|
||||
# include "./types.h"
|
||||
|
||||
typedef struct s_number
|
||||
{
|
||||
t_str number;
|
||||
t_str int_part;
|
||||
t_str float_part;
|
||||
t_usize int_size;
|
||||
t_usize float_size;
|
||||
} t_number;
|
||||
|
||||
t_error ft_nblen(const t_str str, t_usize *interger, t_usize *floating);
|
||||
t_error ft_init_numbers(t_str str, t_number *nb);
|
||||
char **ft_split(char const *s, char c);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue