0
0
This commit is contained in:
Guy Baconniere
2021-08-21 19:03:19 +02:00
parent 681c2242b9
commit ea62cdfc05
16 changed files with 522 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rush-02.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jsollett <marvin@42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/21 13:54:54 by jsollett #+# #+# */
/* Updated: 2021/08/21 18:33:57 by jsollett ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include "ft/ft.h"
int main(int argc, char *argv[])
{
if (argc == 1)
ft_putstr("Enter a number or dictionary + number \n");
else if (argc == 2)
{
ft_putstr("test unsigned +\n");
ft_putstr("si oui, ouvrir dico de base\n");
ft_putstr(" et compute le nb:\n");
ft_putstr(argv[1]);
}
else if (argc == 3)
{
ft_putstr("test unsigned +\n");
ft_putstr("si oui, ouvrir : ");
ft_putstr(argv[1]);
ft_putstr(" et compute le nb :\n");
ft_putstr(argv[2]);
}
else
ft_putstr("too arguments !");
}