-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.c
33 lines (29 loc) · 1.14 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mdeville <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/07/07 22:46:58 by mdeville #+# #+# */
/* Updated: 2017/07/08 21:51:03 by mdeville ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
void sastantua(int size);
int ft_atoi(const char *str);
int main(int argc, const char *argv[])
{
int param;
if (argc < 2 || argc > 2)
{
return (0);
}
param = ft_atoi(argv[1]);
if (param <= 0)
{
return (0);
}
sastantua(param);
return (0);
}