aboutsummaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-20 18:41:55 +0100
committerDominik Kaiser2025-01-20 18:41:55 +0100
commit4e249399780b53dad6fa1bf6db8a7c6d32ee2d13 (patch)
tree21ec55386702455222d320cbf270f3c2065ccc3a /src/error.c
parenteceed405102e019b1f001751de60f5534be0a0ef (diff)
downloadminishell-4e249399780b53dad6fa1bf6db8a7c6d32ee2d13.tar.gz
minishell-4e249399780b53dad6fa1bf6db8a7c6d32ee2d13.zip
I love the norme sooooooooooo much!!!!
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c
index 628200d..2ca60b2 100644
--- a/src/error.c
+++ b/src/error.c
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/15 16:35:53 by dkaiser #+# #+# */
-/* Updated: 2025/01/15 16:36:18 by dkaiser ### ########.fr */
+/* Updated: 2025/01/20 18:12:40 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,3 +21,10 @@ void *error(int err_code, char *err_text, int exit_code, int *ret_code)
*ret_code = exit_code;
return (NULL);
}
+
+void command_not_found_error(char *cmd)
+{
+ ft_printf("%s:", cmd);
+ ft_putstr_fd(" command not found", 2);
+ ft_printf("\n");
+}