sync
This commit is contained in:
39
Rush_02/rush-02/ex00/rush-02.c
Normal file
39
Rush_02/rush-02/ex00/rush-02.c
Normal 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 !");
|
||||
}
|
||||
Reference in New Issue
Block a user