mapi test main avec null
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2019/11/25 14:01:40 by hulamy #+# #+# */
|
/* Created: 2019/11/25 14:01:40 by hulamy #+# #+# */
|
||||||
/* Updated: 2019/11/25 14:19:43 by hulamy ### ########.fr */
|
/* Updated: 2019/12/04 17:01:25 by hulamy ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@@ -41,9 +41,12 @@
|
|||||||
** char *str;
|
** char *str;
|
||||||
** char touppercase(unsigned int, char);
|
** char touppercase(unsigned int, char);
|
||||||
**
|
**
|
||||||
** if (ac != 2)
|
** if (ac > 2)
|
||||||
** return (0);
|
** return (0);
|
||||||
** str = av[1];
|
** if (ac == 2)
|
||||||
|
** str = strdup(av[1]);
|
||||||
|
** if (ac == 1)
|
||||||
|
** str = NULL;
|
||||||
** printf("%s\n",str);
|
** printf("%s\n",str);
|
||||||
** str = ft_strmapi(str, touppercase);
|
** str = ft_strmapi(str, touppercase);
|
||||||
** printf("%s\n",str);
|
** printf("%s\n",str);
|
||||||
|
|||||||
Reference in New Issue
Block a user