42-archive/42sh/src/exec/bad_fd.c
2017-03-21 16:41:00 +01:00

19 lines
993 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* bad_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/06 22:32:43 by jhalford #+# #+# */
/* Updated: 2017/03/21 16:24:33 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int bad_fd(int fd)
{
SH_ERR("%i: Bad file descriptor", fd);
return (1);
}