clean: norm part 1
This commit is contained in:
@ -1,3 +1,15 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* builtins.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/27 13:41:30 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/03/27 13:41:31 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef BUILTINS_H
|
||||
# define BUILTINS_H
|
||||
# include "../libftx/libft/list.h"
|
||||
|
@ -1,3 +1,15 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* builtins_private.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/27 13:41:42 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/03/27 13:41:44 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef BUILTINS_PRIVATE_H
|
||||
# define BUILTINS_PRIVATE_H
|
||||
# include <limits.h>
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/02/17 13:09:08 by erey-bet #+# #+# */
|
||||
/* Updated: 2023/03/13 16:50:40 by erey-bet ### ########.fr */
|
||||
/* Updated: 2023/03/28 15:53:52 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -46,7 +46,8 @@ int echo(int fd, char **strs)
|
||||
{
|
||||
while (is_space(*strs[i]))
|
||||
strs[i]++;
|
||||
if (check_start_write == 1 || check_argument(strs[i], &check_backslash_n))
|
||||
if (check_start_write == 1
|
||||
|| check_argument(strs[i], &check_backslash_n))
|
||||
{
|
||||
check_start_write = 1;
|
||||
ft_putstr_fd(strs[i], fd);
|
||||
@ -58,9 +59,3 @@ int echo(int fd, char **strs)
|
||||
write(fd, "\n", 1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*int main(int argc, char *argv[])
|
||||
{
|
||||
echo(1, argv + 1);
|
||||
return (0);
|
||||
}*/
|
||||
|
Reference in New Issue
Block a user