20 lines
1 KiB
C
20 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* bad_fd.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/02/06 22:32:43 by jhalford #+# #+# */
|
|
/* Updated: 2017/02/07 16:02:12 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "minishell.h"
|
|
|
|
int bad_fd(int fd)
|
|
{
|
|
ft_dprintf(2, "{red}%s: %i: Bad file descriptor{eoc}\n",
|
|
SHELL_NAME, fd);
|
|
return (1);
|
|
}
|