STD[IN|OUT|ERR] macros take from %_FILENO macros instead of hardcoded 0 1 2

This commit is contained in:
Jack Halford 2017-02-08 22:48:02 +01:00
parent 0c79cfae8b
commit b0c5e6530e

View file

@ -13,9 +13,9 @@
#ifndef LIBFT_H
# define LIBFT_H
# define STDIN 0
# define STDOUT 1
# define STDERR 2
# define STDIN STDIN_FILENO
# define STDOUT STDOUT_FILENO
# define STDERR STDERR_FILENO
# define STDBUG 3
# define DG_MSG0 "{inv}{yel}%21s {bol}{blu}%-3d{eoc}"