fix: fixed ignored result compilation errro
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/10/29 22:08:55 by sede-san #+# #+# */
|
||||
/* Updated: 2025/10/30 01:14:09 by sede-san ### ########.fr */
|
||||
/* Updated: 2025/12/01 16:27:08 by sede-san ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -20,7 +20,7 @@ u_int8_t builtin_pwd(
|
||||
|
||||
(void)cmd;
|
||||
(void)msh;
|
||||
getcwd(cwd, PATH_MAX);
|
||||
printf("%s\n", cwd);
|
||||
if (getcwd(cwd, PATH_MAX) != NULL)
|
||||
ft_putendl(cwd);
|
||||
return (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user