removed useless files
This commit is contained in:
@ -1,24 +0,0 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* is_fd_open.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/05 17:31:53 by marde-vr #+# #+# */
|
||||
/* Updated: 2024/03/05 17:35:39 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../srcs/minishell.h"
|
||||
|
||||
int is_fd_open(int fd)
|
||||
{
|
||||
if (fcntl(fd, F_GETFL) == -1)
|
||||
{
|
||||
ft_printf_fd(2, "%d:closed\n", fd);
|
||||
return (0);
|
||||
}
|
||||
ft_printf_fd(2, "%d:open\n", fd);
|
||||
return (1);
|
||||
}
|
27
other/test.c
27
other/test.c
@ -1,27 +0,0 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/04 17:30:08 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/09 16:41:52 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
while (i < argc)
|
||||
{
|
||||
printf("\"%s\"\n", argv[i]);
|
||||
i++;
|
||||
}
|
||||
return (0);
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test2.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/07 13:30:04 by tomoron #+# #+# */
|
||||
/* Updated: 2024/02/09 16:42:59 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
if (argc == 2)
|
||||
return (atoi(argv[1]));
|
||||
return (0);
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* test3.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/22 19:42:37 by marde-vr #+# #+# */
|
||||
/* Updated: 2024/04/22 19:42:38 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
(void) argv;
|
||||
while (1)
|
||||
(void)argc;
|
||||
}
|
Reference in New Issue
Block a user