0
0
Files
42piscine/Rush_02/rush-02/ex00/rush-02.c

40 lines
1.4 KiB
C
Raw Normal View History

2021-08-21 19:03:19 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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 !");
}