Adding the negative number
This commit is contained in:
parent
e8a89c456e
commit
1960bbc47a
4 changed files with 21 additions and 12 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/04 12:16:08 by rparodi #+# #+# */
|
||||
/* Updated: 2024/05/28 15:43:40 by rparodi ### ########.fr */
|
||||
/* Updated: 2024/05/29 16:22:10 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
typedef struct s_number
|
||||
{
|
||||
t_i8 sign;
|
||||
t_str number;
|
||||
t_str int_part;
|
||||
t_str float_part;
|
||||
|
|
@ -27,7 +28,7 @@ typedef struct s_number
|
|||
t_usize float_size;
|
||||
} t_number;
|
||||
|
||||
t_error ft_nblen(const t_str str, t_usize *interger, t_usize *floating);
|
||||
t_error ft_nblen(const t_str str, t_usize *int_len, t_usize *float_len, t_u8 *sign);
|
||||
t_error ft_init_numbers(t_str str, t_number *nb);
|
||||
char **ft_split(char const *s, char c);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue