Compare commits
No commits in common. "6a81705b98a8d4ec278a277891c95b50c52e1879" and "cdfa81328b0d62fe6699746fdd5755fc9a4049b3" have entirely different histories.
6a81705b98
...
cdfa81328b
@ -6,7 +6,7 @@
|
|||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/17 13:09:08 by erey-bet #+# #+# */
|
/* Created: 2023/02/17 13:09:08 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/03/30 13:55:40 by erey-bet ### ########.fr */
|
/* Updated: 2023/03/28 15:53:52 by cchauvet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ int check_argument(char *str, int *check_backslash_n)
|
|||||||
while (str[++i])
|
while (str[++i])
|
||||||
if (str[i] != '-' && str[i] != 'n')
|
if (str[i] != '-' && str[i] != 'n')
|
||||||
return (1);
|
return (1);
|
||||||
if (ft_strnstr(str, "n", ft_strlen(str)) && str[0] == '-')
|
if (ft_strnstr(str, "n", ft_strlen(str)))
|
||||||
*check_backslash_n = 1;
|
*check_backslash_n = 1;
|
||||||
else
|
else
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
Reference in New Issue
Block a user