fix retour copy/cut

This commit is contained in:
gwojda 2017-03-23 16:52:45 +01:00
parent 1f881129ab
commit 9cd96b13f0
3 changed files with 6 additions and 6 deletions

View file

@ -6,14 +6,14 @@
# By: wescande <wescande@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/08/29 21:32:58 by wescande #+# #+# #
# Updated: 2017/03/23 16:37:26 by gwojda ### ########.fr #
# Updated: 2017/03/23 16:49:08 by gwojda ### ########.fr #
# #
# **************************************************************************** #
NAME = 42sh
CC = gcc
FLAGS = -Wall -Wextra -Werror -fvisibility=hidden -fsanitize=address
FLAGS = -Wall -Wextra -Werror #-fvisibility=hidden -fsanitize=address
D_FLAGS = -g
DELTA = $$(echo "$$(tput cols)-47"|bc)

View file

@ -6,7 +6,7 @@
# By: jhalford <jack@crans.org> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/02/07 16:09:36 by jhalford #+# #+# #
# Updated: 2017/03/23 16:38:05 by gwojda ### ########.fr #
# Updated: 2017/03/23 16:49:31 by gwojda ### ########.fr #
# #
# **************************************************************************** #

View file

@ -6,7 +6,7 @@
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/19 12:45:06 by gwojda #+# #+# */
/* Updated: 2017/03/23 16:28:01 by gwojda ### ########.fr */
/* Updated: 2017/03/23 16:52:38 by gwojda ### ########.fr */
/* */
/* ************************************************************************** */
@ -43,7 +43,7 @@ int ft_x(char **str, size_t *pos)
while (g_cpy[i].value && g_cpy[i].value != ret)
++i;
if (g_cpy[i].value && (ret = g_cpy[i].f(str, pos, pos_ref)))
return (ret);
return (0);
else
break ;
}
@ -72,7 +72,7 @@ int ft_c(char **str, size_t *pos)
while (g_cpy[i].value && g_cpy[i].value != ret)
++i;
if (g_cpy[i].value && (ret = g_cpy[i].f(str, pos, pos_ref)))
return (ret);
return (0);
else if (!g_cpy[i].value)
break ;
}