-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C Piscine C 08 - Fail 40% (2019-12-13)
- Loading branch information
Amanda Puchille pinha
committed
Dec 13, 2019
1 parent
e047d63
commit a452d68
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft.h :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: apuchill <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/12/12 21:38:13 by apuchill #+# #+# */ | ||
/* Updated: 2019/12/12 21:38:38 by apuchill ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#ifndef FT_H | ||
# define FT_H | ||
|
||
void ft_putchar(char c); | ||
void ft_swap(int *a, int *b); | ||
void ft_putstr(char *str); | ||
int ft_strlen(char *str); | ||
int ft_strcmp(char *s1, char *s2); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_boolean.h :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: apuchill <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/12/12 21:44:33 by apuchill #+# #+# */ | ||
/* Updated: 2019/12/12 22:09:23 by apuchill ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#ifndef FT_BOOLEAN_H | ||
# define FT_BOOLEAN_H | ||
|
||
# include <unistd.h> | ||
|
||
typedef int t_bool; | ||
# define EVEN(nbr) (nbr % 2 == 0) ? 1 : 0 | ||
# define TRUE 1 | ||
# define FALSE 0 | ||
# define EVEN_MSG "I have an even number of arguments.\n" | ||
# define ODD_MSG "I have an odd number of arguments.\n" | ||
# define SUCCESS 0 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_abs.h :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: apuchill <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/12/12 21:44:38 by apuchill #+# #+# */ | ||
/* Updated: 2019/12/12 22:14:39 by apuchill ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#ifndef FT_ABS_H | ||
# define FT_ABS_H | ||
|
||
# define ABS(Value) (Value < 0) ? (Value * -1) : (Value) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* ft_point.h :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: apuchill <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2019/12/12 21:44:41 by apuchill #+# #+# */ | ||
/* Updated: 2019/12/12 22:37:02 by apuchill ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#ifndef FT_POINT_H | ||
# define FT_POINT_H | ||
|
||
typedef struct s_point t_point; | ||
|
||
struct s_point | ||
{ | ||
int x; | ||
int y; | ||
}; | ||
|
||
#endif |